Function prost::encode_length_delimiter

source ·
pub fn encode_length_delimiter(
    length: usize,
    buf: &mut impl BufMut
) -> Result<(), EncodeError>
Expand description

Encodes a length delimiter to the buffer.

See [Message.encode_length_delimited] for more info.

An error will be returned if the buffer does not have sufficient capacity to encode the delimiter.