SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
rtp.h File Reference

RFC 3550-compliant RTP implementation. More...

#include <smolrtsp/priv/compiler_attrs.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for rtp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SmolRTSP_RtpHeader
 An RTP header. More...
 

Functions

size_t SmolRTSP_RtpHeader_size (SmolRTSP_RtpHeader self) SMOLRTSP_PRIV_MUST_USE
 Computes the size of the binary self.
 
uint8_t * SmolRTSP_RtpHeader_serialize (SmolRTSP_RtpHeader self, uint8_t buffer[restrict]) SMOLRTSP_PRIV_MUST_USE
 Writes self to buffer. More...
 

Detailed Description

RFC 3550-compliant RTP implementation.

Function Documentation

◆ SmolRTSP_RtpHeader_serialize()

uint8_t* SmolRTSP_RtpHeader_serialize ( SmolRTSP_RtpHeader  self,
uint8_t  buffer[restrict] 
)

Writes self to buffer.

Parameters
[in]selfThe RTP header to write.
[out]bufferThe pointer to write to. Must be at least of size SmolRTSP_RtpHeader_size(self).
Returns
The pointer to a passed buffer.