Skip to main content

decode_rdb_record

Function decode_rdb_record 

Source
pub fn decode_rdb_record(bytes: &[u8]) -> Result<RObject, Error>
Expand description

Decodes a single .rdb record: bytes is the exact (offset, length) slice a .rdx index entry points at, i.e. a 4-byte big-endian uncompressed-size prefix followed by a raw zlib deflate stream. The decompressed size is checked against the prefix before parsing.