Expand description
Low-level message codec functions.
Functionsยง
- calc_
option_ size - Calculates the encoded size of a CoAP option.
- decode_
option - Decodes one option from a
core::slice::Iter
, which can be obtained from a byte slice. The iterator is then advanced to the next option. - encode_
option - Encodes an option into the given buffer, including the value.
- encode_
option_ without_ value - Encodes all parts of an option into the given buffer except the value. All other parts,
including the value length, are encoded. This is typically used directly when inserting
options, otherwise
encode_option()
(which writes the value) is typically a better fit. - insert_
option - Inserts an option into an option list. Very slow unless called sequentially.