pub fn encode_option_without_value(
buffer: &mut [u8],
prev_key: OptionNumber,
key: OptionNumber,
value_len: usize,
) -> Result<usize, Error>
Expand description
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.