Function encode_option

Source
pub fn encode_option(
    buffer: &mut [u8],
    prev_key: OptionNumber,
    key: OptionNumber,
    value: &[u8],
) -> Result<usize, Error>
Expand description

Encodes an option into the given buffer, including the value.