pub fn encode_optional_binary<B: BufMut>(
buf: &mut B,
data: Option<&[u8]>,
) -> Result<()>Expand description
Encodes optional binary data (compatibility function)
If data is None, nothing is written to the buffer
ยงErrors
Returns an error if the data length exceeds maximum