Skip to main content

tl_read_bytes

Function tl_read_bytes 

Source
pub fn tl_read_bytes(data: &[u8]) -> Option<Vec<u8>>
Expand description

Decode a TL bytes value: the read-side counterpart to tl_write_bytes. Returns None on a truncated or malformed length prefix. Doesn’t skip the 4-byte alignment padding TL normally adds after the payload, since this is only used to unwrap gzip_packed’s single trailing field.