Code Monkey home page Code Monkey logo

lz4_frame_formatter's Introduction

Usage

This is purely a simple example of how the implementation can be acheived. Please see UlyssesWu/LZ4.Frame for a usable implementation

Intro

Example C# implementation of reading and writing files to/from LZ4 format See the specification for details: https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md

The LZ4 frame format does not support multiple files in one LZ4 frame. To work with directories, either put everything in a tarball and compress it Or compress all the files an put them in a tarball.

SharpCompress and SharpZipLib supports tar

Packages

This software relies on two packages

  • lz4net
  • xxHash

Compatibility

I've been testing the code against the LZ4 binary available on Ubuntu 16.04 by Yann Collet.

Files compressed with this code are compatible and can be decompressed by the LZ4 binary.

Files compressed by the LZ4 binary with the --content-size flag decompress with this code.

I'm currently have trouble with compressing and decompressing files over 4MB. It works fine internally, but it's no longer functional between this code and the LZ4 binary, so I probably implemented something wrong with how multiple blocks are handled (since max size of each block is 4MB).

lz4_frame_formatter's People

Contributors

ulysseswu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ulysseswu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.