encode_to_buf

Function encode_to_buf 

Source
pub fn encode_to_buf(
    buf: &mut [u8],
    options: &[CoapOption<'_>],
) -> Result<usize, Error>
Expand description

Encodes a slice of CoapOptions into a buffer and returns the encoded length