enum ParamEncoding {
Varint,
Uint8,
Location,
LengthPrefixed,
TrackNamespaceValue,
LocationFilter,
}Expand description
How a parameter value is encoded on the wire.
Variants§
Varint
Bare varint.
Uint8
Single byte (uint8).
Location
Two consecutive varints (group, object).
LengthPrefixed
Length-prefixed bytes.
TrackNamespaceValue
A Track Namespace as defined in draft-22 Section 8.7: a varint field count followed by that many length-prefixed fields.
The fifth value encoding draft-22 Section 9.20 lists: “Track Namespace: A sequence of length-prefixed fields (Section 8.7)”. TRACK_NAMESPACE_PREFIX is the parameter that uses it; the field count is the only length the wire carries.
LocationFilter
A Location Filter Type followed by the zero to four vi64 fields that
type names (draft-22 Section 9.20.9).
None of the five encodings Section 9.20 lists fits it. The parameter definition states its own structure, and that structure has no length: the type is the only thing that says where the value ends.