Skip to content
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

Question: Is the divans' on-disk file format seek-able? #7

Open
oleid opened this issue Jun 20, 2018 · 1 comment
Open

Question: Is the divans' on-disk file format seek-able? #7

oleid opened this issue Jun 20, 2018 · 1 comment

Comments

@oleid
Copy link

oleid commented Jun 20, 2018

Is the divans on-disk file format seek-able? I.e. would it be possible to start decompressing somewhere in a file or would one need to decompress everything from the start?

Or in rust terms: could DivansDecompressorReader implement the std::io::Seek trait?

@oleid oleid changed the title Question: Is the divans on-disk file format seek-able? Question: Is the divans' on-disk file format seek-able? Jun 20, 2018
@danielrh
Copy link
Collaborator

not at the moment--but it would actually be a pretty small change--I patched dropbox/lepton@eb6fde4 to be seekable (though for images its less useful) by simply chopping the file up in regular sections (eg 2 or 4 mb) and resetting all the state at the boundary area.
It should be even easier to do a similar change to this codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants