kaitai-io / kaitai_struct_java_runtime

Kaitai Struct: runtime for Java
MIT License
42 stars 18 forks source link

Add ByteBuffer Constructor #11

Closed efaurie closed 7 years ago

efaurie commented 7 years ago

I think adding a straight ByteBuffer constructor makes some scenarios easier. If the source file is compressed, requiring a byte array means decompressing the entire file into memory first.

GreyCat commented 7 years ago

Sure, why not :) I don't think that this will help a lot with working on compressed data. You still need to either a pretty sophisticated indexed compression scheme, or decompress all data to be able to seek to arbitrary byte #n in decompressed stream.

gmacon commented 7 years ago

Do we have any idea when to expect a new release to Maven Central that contains this update?

GreyCat commented 7 years ago

Generally, we release runtimes together with new version of compiler. If you're ok with using -SNAPSHOT version, I can publish it right away, though.

gmacon commented 7 years ago

We have a "no SNAPSHOT" policy; don't worry about it. Thanks for letting me know.