Function prost::encode_length_delimiter
source ยท pub fn encode_length_delimiter<B>(
length: usize,
buf: &mut B,
) -> Result<(), EncodeError>where
B: BufMut,
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.