Snappywrap.Framing (snappywrap v0.1.1)
View SourceThe Snappy framing format is an optional Snappy format.
It consists of a stream identifier header 0xff 0x06 0x00 0x00 0x73 0x4e 0x61 0x50 0x70 0x59
, followed by a series of chunks.
In this wrapper implementation, each chunk can only be an uncompressed data chunk (identifier: 0x01
).
Snappy chunks have the following format:
1 byte
: chunktype
(0x01 for uncompressed data)3 bytes
: chunklength
(little-endian)4 bytes
: masked CRC-32Cchecksum
of the chunk dataN bytes
: chunkdata
Summary
Functions
Encodes as uncompressed data in Snappy framing
format.