nerou/lz4frame 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nerou/lz4frame

最新稳定版本:v0.1.1

Composer 安装命令:

pie install nerou/lz4frame

包简介

Compress/decompress data to LZ4 blocks or frames

README 文档

README

Note

The pull request to add LZ4 Frame format support to kjdev/lz4 has been merged, such that it supports the LZ4 Frame format since version 0.6.0. Therefore and because this repository does not support compression levels, this repository is obsolete.

This extension adds support for the LZ4 compression algorithm.

Unlike kjdev/lz4, this extension...

  • is based on lz4_flex rather than Cyan4973's LZ4
  • supports the LZ4 Frame format, which adds checksums, magic bytes etc.
  • does not (yet) support compression levels, since lz4_flex does not

Install

It is recommended to install this extension via PIE:

pie install nerou/lz4frame

Usage

Have a look at the stubs file to see the API.

If you are wondering what the block vs. frame formats are, have a look at Block Format and Frame Format. Short version: While the Block format is just the compressed data in a more or less raw variant, the Frame format adds a header and footer around it, which contain magic bytes, checksums, length information etc. Therefore, the Frame format is much easier to recognize as being LZ4 compressed data compared to the Block format and you get better integrity due to the (optional) checksums.

License

This project is licensed under the MIT license.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Rust

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-03