Multithreading Library for [Brotli], [Lizard], [LZ4], [LZ5], [Snappy-c], [LZFSE] and [Zstandard]

October 16, 2020 ยท View on GitHub

Description

  • works with skippables frame id 0x184D2A50 (12 bytes per compressed frame)
  • brotli is supported the same way, it will encapsulate the real brotli stream within an 16 byte frame header

Generic skippable frame definition

sizevaluedescription
4 bytes0x184D2A50Umagic for skippable frame
4 bytes4size of skippable frame
4 bytescompressed sizesize of the following frame (compressed data)

Brotli frame definition

  • the frame header for brotli is defined a bit different:
sizevaluedescription
4 bytes0x184D2A50Umagic for skippable frame (like zstd)
4 bytes8size of skippable frame
4 bytescompressed sizesize of the following frame (compressed data)
2 bytes0x5242Umagic for brotli "BR"
2 bytesuncompressed sizeallocation hint for decompressor (64KB * this size)

Snappy-c frame definition

  • the frame header for Snappy-c is defined a bit different:
sizevaluedescription
4 bytes0x184D2A50Umagic for skippable frame (like zstd)
4 bytes8size of skippable frame
4 bytescompressed sizesize of the following frame (compressed data)
2 bytes0x5053Umagic for Snappy-c "SP"
2 bytesuncompressed sizeallocation hint for decompressor (64KB * this size)

LZFSE frame definition

  • the frame header for Lzfse is defined a bit different:
sizevaluedescription
4 bytes0x184D2A50Umagic for skippable frame (like zstd)
4 bytes8size of skippable frame
4 bytescompressed sizesize of the following frame (compressed data)
2 bytes0x464CUmagic for Lzfse "LF"
2 bytesuncompressed sizeallocation hint for decompressor (64KB * this size)

Usage of the Testutils

Usage of the Library

/TR 2020-10-15