[][src]Module async_coap::message::codec

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.