Skip to main content

put_compact_nullable_bytes

Function put_compact_nullable_bytes 

Source
pub fn put_compact_nullable_bytes<B: BufMut>(
    buf: &mut B,
    b: Option<&[u8]>,
) -> Result<(), ProtocolError>
Expand description

ยงErrors

Returns ProtocolError::LengthOverflow when the length does not fit its prefix.