Skip to main content

encode_chunk

Function encode_chunk 

Source
pub fn encode_chunk(data: &[u8], out: &mut Vec<u8>)
Expand description

Writes one chunk: the size in uppercase hex, CRLF, the data, CRLF. Empty data writes nothing, because a zero-size chunk is the last chunk.