FR: Support Block Dependence
See original GitHub issueI am getting following error for some lz4 files.
Error: Invalid data block: 12 @579083
at Decoder.emit_Error (src/node_modules/lz4/lib/decoder_stream.js:64:22)
at Decoder.uncompress_DataBlock (src/node_modules/lz4/lib/decoder_stream.js:246:9)
at Decoder._main (src/node_modules/lz4/lib/decoder_stream.js:317:25)
at Decoder._transform (src/node_modules/lz4/lib/decoder_stream.js:60:7)
at Decoder.Transform._read (_stream_transform.js:167:10)
at Decoder.Transform._write (_stream_transform.js:155:12)
at doWrite (_stream_writable.js:301:12)
at writeOrBuffer (_stream_writable.js:287:5)
at Decoder.Writable.write (_stream_writable.js:215:11)
at IncomingMessage.ondata (_stream_readable.js:536:20)
I added some debug code in “Decoder.prototype.uncompress_DataBlock” function in decoder_stream.json
this.descriptor.blockMaxSize 262144 , decodedSize262144 this.descriptor.blockMaxSize 262144, decodedSize -4 <<< This is where it errors out
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Social Services Block Grant Program (SSBG)
Through the SSBG, states provide essential social services that help achieve a myriad of goals to reduce dependency and promote self-sufficiency ...
Read more >Rate Transition - MathWorks
The Rate Transition block transfers data from the output of a block operating at one rate to the input of a block operating...
Read more >Pharmacological approaches to methamphetamine dependence
The functional effect is to block catecholamine re-uptake from and increase catecholamine ... Dr Karila (France) received support from the MILDT (Mission ...
Read more >Blocks in TWO-WAY RMANOVA - Forums - IBM Support - IBM
I'm measuring soil Co2 Efflux (the dependent variable) every two weeks for 3 years (Time --> Repeated measure needed) from a grassland.
Read more >Recovery Housing Program | HUD.gov / U.S. Department of ...
The program is authorized under Section 8071 of the SUPPORT Act. The Department published its formula in the Federal Register (FR) on April...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The block dependency compression is indeed not implemented in the js version. It would be nice to have it, even though the few samples I tried it on (using the Go version) didnt bring any benefit. I dont have time right now to do the work but if you feel like it I would consider a pull request! Or maybe for the time being, just emit an error when the flag is set.
@pierrec Sorry to up my previous question but I’d need to figure out why node-lz4 fails to uncompress some of my lz4 files (not all of them).
So far I’ve used lz4js because it does decode my lz4 files compressed with K4os.Compression.LZ4 C# library.
However lz4js has no stream support and I wish to use streams because I have some big lz4 files to uncompress.