Buffer
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
[ GIR ( name = "RTCPBuffer" ) ]
public struct Buffer
Note: The API in this module is not yet declared stable.
The GstRTPCBuffer helper functions makes it easy to parse and create regular
Buffer objects that contain compound RTCP packets. These buffers are typically of 'application/x-rtcp'
Caps.
An RTCP buffer consists of 1 or more Packet structures that you can retrieve with
get_first_packet. Packet
acts as a pointer into the RTCP buffer; you can move to the next packet with
move_to_next.
Content:
Static methods:
- public static Buffer @new (uint mtu)
Create a new buffer for constructing RTCP packets.
- public static bool map (Buffer buffer, MapFlags flags, out Buffer rtcp)
Open buffer for reading or writing, depending on
flags.
- public static Buffer new_copy_data (uint8[] data)
Create a new buffer and set the data to a copy of data.length
bytes of data and the size to data.length.
- public static Buffer new_take_data (owned uint8[] data)
Create a new buffer and set the data and size of the buffer to
data and data.length respectively.
- public static bool validate (Buffer buffer)
Check if the data pointed to by buffer is a valid RTCP
packet using validate_data.
- public static bool validate_data (uint8[] data)
Check if the data and size point to the data
of a valid compound, non-reduced size RTCP packet.
- public static bool validate_data_reduced (uint8[] data)
Check if the data and size point to the data
of a valid RTCP packet.
- public static bool validate_reduced (Buffer buffer)
Check if the data pointed to by buffer is a valid RTCP
packet using validate_reduced.
Methods:
Fields: