Expand description
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. Section 10.4.2
Table 6 assigns twenty-four:
0x10-0x15,0x18-0x1D,0x30-0x35and0x38-0x3D. - Priority is absent when
type & 0x20, and the object then inherits the priority the subscription established type & 0x06decides how the Subgroup ID is carried: it is zero, it is the first object’s ID, or it is a field on the wire. Table 6 states that as two columns — Subgroup ID Field Present, and Subgroup ID Value — not as a mode field, and the fourth combination is simply not a row in ittype & 0x08marks a stream whose last object ends its group- Extensions flag (
type & 0x01) affects per-object parsing - 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.
- Fetch
Object Header - One object on a draft-15 fetch stream, without its payload.
- Fetch
Object Reader - Stateful reader/writer for the objects on one draft-15 fetch stream.
- Fetch
Object Writer - Re-encodes resolved fetch Objects onto one FETCH stream.
- 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 Meta - The framing of one draft-15 subgroup object, without its payload.
- Subgroup
Object Reader - Stateful reader/writer for draft-15 subgroup objects.
Enums§
- Payload
Permission - Whether an object carrying a given status may hold a non-empty payload.
- Subgroup
IdEncoding - How a draft-15 fetch object carries its Subgroup ID.