SmolRTSP 0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
Loading...
Searching...
No Matches
io_vec.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stddef.h>
9
10#include <sys/socket.h>
11#include <sys/types.h>
12
13#include <slice99.h>
14
15#include <smolrtsp/priv/compiler_attrs.h>
16
20SLICE99_DEF_TYPED(SmolRTSP_IoVecSlice, struct iovec);
21
25size_t SmolRTSP_IoVecSlice_len(SmolRTSP_IoVecSlice self) SMOLRTSP_PRIV_MUST_USE;
26
30struct iovec smolrtsp_slice_to_iovec(U8Slice99 slice) SMOLRTSP_PRIV_MUST_USE;
size_t SmolRTSP_IoVecSlice_len(SmolRTSP_IoVecSlice self) SMOLRTSP_PRIV_MUST_USE
Computes the total length of self.
SLICE99_DEF_TYPED(SmolRTSP_IoVecSlice, struct iovec)
A slice of elements of type struct iovec.
struct iovec smolrtsp_slice_to_iovec(U8Slice99 slice) SMOLRTSP_PRIV_MUST_USE
Converts an octet slice slice to struct iovec.