-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide size of uncompressed data #159
Comments
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. README.md mention lz4 and update comparison table Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. README.md mention lz4 and update comparison table Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
support parsing lz4 compressed files `.lz4` refactor processing sequential-only syslogs (compressed logs that can only be read linearly; no binary searching) add logs for LZ4 `.lz4`, and old LZMA `.lz`, and variations of those add tests in compare-current-and-expected add lz4 flamegraph in flamegraphs.sh Fix Issue #201 with tests that had unknown panics for blockreader processing gzip files. README.md mention lz4 and update comparison table Issue PSeitz/lz4_flex#159 Issue #201 Issue #128 Issue #291 Issue #283
There's the
Why would that be helpful? |
How do I access the use std::fs::File;
use std::fs::OpenOptions;
use std::io::prelude::Read;
use std::io::BufReader;
use std::path::Path;
use ::lz4_flex;
fn main() {
let mut open_options = OpenOptions::new();
let path = String::from("/tmp/file.lz4");
let path_std = Path::new(&path);
let file_lz: File = match open_options.read(true).open(path_std) {
Ok(val) => val,
Err(err) => panic!("{}", err),
};
let bufreader = BufReader::<File>::new(file_lz);
let mut lz4_decoder = lz4_flex::frame::FrameDecoder::new(bufreader);
// ... how to access content_size ?
} I created
|
|
I'm confused. Could you please provide a code example? |
It's not accessible currently. It's existence is optional, so not sure what it can be used for externally |
Can
lz4_flex
provide an API for getting the uncompressed size of data before decompressing that data?I assume the uncompressed size is in some kind of block header or something like that? (I don't know the LZ4 binary format; just guessing)
This would be particularly helpful for lz4 compressed files.
The text was updated successfully, but these errors were encountered: