50#define MOQDG_HDR_MAX 29
draft-ietf-moq-transport-18/19/22 data-plane (draft-19 sections; the wire is byte-identical in all th...
int moqdg_take(wired_span buf, usz *off, moqdg_obj *out)
Decodes one OBJECT_DATAGRAM spanning all of buf from *off.
int moqdg_put(wired_mspan buf, usz *off, const moqdg_obj *o)
Encodes o at *off, minimal varints.
int moqdg_type_valid(u64 type)
OBJECT_DATAGRAM Type (11.3.1): 0b00X0XXXX, i.e.
Value-type views that fold the SDK's recurring argument shapes into single parameters,...
Decoded OBJECT_DATAGRAM (11.3.1).
Definition moqdg.h:25
u64 type
Type byte; its bits say which fields below were on the wire.
Definition moqdg.h:27
wired_span payload
Object Payload (the rest of the datagram); empty when the STATUS bit is set.
Definition moqdg.h:44
u64 object_id
Object ID; 0 when the ZERO_OBJECT_ID bit (0x04) omits the field.
Definition moqdg.h:33
wired_span props
Properties bytes after the Properties Length (11.2.1.2); empty when the PROPERTIES bit (0x01) is clea...
Definition moqdg.h:41
u64 status
Object Status; 0 (Normal) unless the STATUS bit (0x20) is set.
Definition moqdg.h:38
u64 group_id
Group ID.
Definition moqdg.h:31
u64 track_alias
Track Alias (11.1).
Definition moqdg.h:29
u64 priority
Raw 8-bit Publisher Priority; 0 when the DEFAULT_PRIORITY bit (0x08) omits the field.
Definition moqdg.h:36
Mutable view of a byte range.
Definition span.h:42
Read-only view of a byte range.
Definition span.h:30
u64 usz
unsigned size (size_t equivalent)
Definition types.h:20
unsigned long u64
unsigned 64-bit integer
Definition types.h:13