Expand description
Data stream headers (subgroup, datagram, fetch, object). Draft-15 data stream header encoding and decoding.
Draft-15 data streams differ significantly from draft-14:
- Subgroup stream types encode flags in the type byte (0x10-0x17, 0x30-0x37)
- Priority is optional (absent when type & 0x20)
- Subgroup ID is optional (present when type & 0x04)
- Extensions flag (type & 0x01) affects per-object parsing
- Datagram types: 0x00 (normal), 0x02 (end-of-group), 0x04 (no object_id), 0x20 (status)
- Fetch objects use serialization_flags for delta encoding
- Object IDs in subgroups use delta encoding (first=absolute, subsequent=delta+1)
Structsยง
- Datagram
Header - Datagram header for draft-15.
- Fetch
Header - Fetch stream header for draft-15.
- Subgroup
Header - Subgroup stream header for draft-15.
- Subgroup
Object - One object within a draft-15 subgroup stream with its Object ID already resolved from the delta encoding.
- Subgroup
Object Reader - Stateful reader/writer for draft-15 subgroup objects.