Comments (5)
As far as I know, first couple of bytes should be compatible with the command-line tool.
However I don't know of formal specification so it is difficult to say for sure.
I do know there are some implementations that do not do this.
Which platform is this on?
from compress.
Also: it would be interesting to see what first couple of bytes are. I think other codecs leave out Z
and V
but then follow with expected type byte (0x00
or 0x01
).
from compress.
I am not actually using command line tool; I am compressing from withing my application (linux) using the original reference lzf implementation (http://oldhome.schmorp.de/marc/liblzf.html). Your documentation seems to suggest interoperability with that.
from compress.
@usergoodvery to the best of my knowledge, yes, original codec used this encoding. Command-line utilities use liblzf as well I think. As far as I know, Java algorithm used is indeed direct translation of original C version (at least starting point was); no changes were made to logic.
If you want further help, you would need to see what encoded results with embedded algorithm are.
from compress.
Thanks I'll peek at the first few bytes to get a feel of what's being stashed in there...
from compress.
Related Issues (20)
- Add a method to encode directly into given output buffer (of guaranteed size) HOT 1
- Implement encoder (compressor) that makes use of sun.misc.Unsafe HOT 1
- Unsafe-based decompressor of 0.9.7 fails on 2 sample files from 'maxcomp' data set HOT 1
- Improve 'DataHandler` callback to allow early termination HOT 1
- Expose number of bytes read from `InputStream`, via `LZFInputStream` HOT 1
- Unsafe clean up of Thread Local Value
- Add new variants for "compress only if comp rate at least N" HOT 1
- Incorrect de-serialization leading to stream corruption in Big Endian systems HOT 9
- Add convenience method(s) for GZIP read/write
- Document parallel compression task
- OptimizedGZIPInputStream fails on chunked stream HOT 2
- estimateMaxWorkspaceSize() is too small HOT 9
- API changes report for Compress LZF
- Fix issues outlined by "lgtm.com"'s static analysis HOT 1
- Add Java 9+ module info using Moditect HOT 1
- `Unsafe` needs support in `module-info.java` HOT 1
- Mistaken Code in k8s HOT 1
- Maintenance, Contributor access? HOT 11
- README links are broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compress.