Function kapiti::codec::character_string::write
source · pub fn write(
in_buf: &[u8],
out_buf: &mut BytesMut,
description: &str
) -> Result<()>
Expand description
Writes a character-string
: A length byte followed by a 0-255 byte payload.
Returns an error if the provided in_buf
exceeds 255 bytes.