Skip to main content

decode_bytes

Function decode_bytes 

Source
pub fn decode_bytes<'a>(input: &'a [u8]) -> Vec<Vec<Cow<'a, [u8]>>>
Expand description

Decode raw bytes into a seqseq of byte slices. No encoding assumption — works with any ASCII-compatible encoding.

Cells are returned as Cow<[u8]> — borrowed when no unescaping was needed (zero-copy), owned when the cell contained escape sequences.