Skip to main content

encode_ctx_bit_string

Function encode_ctx_bit_string 

Source
pub fn encode_ctx_bit_string(
    buf: &mut BytesMut,
    tag: u8,
    unused_bits: u8,
    data: &[u8],
)
Expand description

Encode a context-tagged BitString. It keeps its own code rather than delegating to encode_ctx_bit_string_to_sink: past u32::MAX octets it saturates the length, where the sink encoder refuses.