Giter VIP home page Giter VIP logo

Comments (7)

gendx avatar gendx commented on June 13, 2024

The LZMA format contains a header which specifies the dictionary size to use: https://github.com/gendx/lzma-rs/blob/master/src/decode/lzma.rs#L46

So lzma-rs just follows whatever dictionary size is written in the compressed stream, there is currently no way to override this value, nor to set limits on it.

from lzma-rs.

XVilka avatar XVilka commented on June 13, 2024

Some formats specify the properties in a different format. It would be awesome to have the "raw" function with everything as a parameter instead.

from lzma-rs.

gendx avatar gendx commented on June 13, 2024

Do you have a reference to the code and documentation for such "some formats"? Otherwise it's hard to add the feature you wish. Feel free to send a pull-request as well (with supporting references, example files, etc.).

from lzma-rs.

jimliang avatar jimliang commented on June 13, 2024

xz for java: https://tukaani.org/xz/java.html
see LZMAInputStream , LZMA2InputStream
@gendx

from lzma-rs.

chyyran avatar chyyran commented on June 13, 2024

I am working on porting libchdr to Rust, which directly interfaces with the LZMA SDK and sets the dictSize and other LZMA params explicitly.

My current solution is to vendor lzma-rs to expose the required options in Stream.

from lzma-rs.

gendx avatar gendx commented on June 13, 2024

I assume this issue is the same feature request as #72?

from lzma-rs.

chyyran avatar chyyran commented on June 13, 2024

#74 covers this for LZMA1, but I'm not sure how the current design of the LZMA2 decoder can take a useful dict_size parameter.

from lzma-rs.

Related Issues (20)

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.