| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Codec.Compression.Snappy.Framed.Comment43
Description
A format defined in a comment on an issue in the old snappy issue tracker.
Example encoding of the string "foobar\n":
00000000 ff 06 00 73 6e 61 70 70 79 01 0b 00 0a 17 bb 3a |...snappy......:| 00000010 66 6f 6f 62 61 72 0a fe 00 00 |foobar....|
Reference: http://code.google.com/p/snappy/issues/detail?id=34#c43 (Broken link, not in the Wayback Machine. Lost to history?)
- parseHeader :: Parser ()
- parseBlock :: Parser ByteString
Documentation
parseHeader :: Parser () Source
Attempt to parse the header. If the header exists, it will be consumed. If not, the parser will fail.
parseBlock :: Parser ByteString Source
Parse a single block of the compressed bytestream, returning a segment of the uncompressed stream.