mcmilk/zstdmt

Multithreading Library for Brotli, Lizard, LZ4, LZ5, Snappy and Zstandard

225

stars

184

commits

C

primary language

Jun 7, 2026

updated

brotli
lizard
lz4
lz5
multithreading-library
skippables-frame
snappy
zstandard
zstd

README

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

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

Contributors

mcmilk

169 commits

jinfeihan57

9 commits

tansy

3 commits

2i3r

1 commits

mcmilk/zstdmt

Multithreading Library for Brotli, Lizard, LZ4, LZ5, Snappy and Zstandard

225

stars

184

commits

C

primary language

Jun 7, 2026

updated

brotli
lizard
lz4
lz5
multithreading-library
skippables-frame
snappy
zstandard
zstd

README

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

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

Contributors

mcmilk

169 commits

jinfeihan57

9 commits

tansy

3 commits

2i3r

1 commits

Languages

C

96.5%

Makefile

3.5%