Encoding
A description of the Value format, allowing zenoh to know how to encode/decode the value to/from a bytes buffer.
Value
FLOAT
INT
JSON
The value is a JSON structure in an UTF-8 string.
PROPERTIES
The value if a list of keys/values, encoded as an UTF-8 string. The keys/values are separated by ‘;’ character, and each key is separated from its associated value (if any) with a ‘=’ character.
RAW
The value has a RAW encoding (i.e. it’s a bytes buffer).
STRING
The value is an UTF-8 string.
fromFlag
getDecoder
Returns the Value.Decoder for this encoding.
Value.Decoder
getFlag
Returns the numeric flag corresponding to the encoding, for usage with zenoh-net.