Skip to main content

encode_bit_string_to_sink

Function encode_bit_string_to_sink 

Source
pub fn encode_bit_string_to_sink<S: EncodeSink + ?Sized>(
    sink: &mut S,
    unused_bits: u8,
    data: &[u8],
) -> Result<usize, SinkFull>
Expand description

Append a BIT STRING’s contents, without a tag: the unused-bit count, then the data octets. Returns the octets appended. Like the BytesMut encoder, it doesn’t check the count.