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

Feature request: extracting files one chunk at a time, instead of all at once #2

Closed
GoogleCodeExporter opened this issue Feb 29, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

The latest SVN snapshot of xar includes a xar_extract_tobuffer() function, 
which is very nice. 
However, if a very large file, such as one that was 1 GB in size, is stored 
inside a xar archive, it 
could be impractical to extract the entire file to a buffer, all at once. For 
this reason, it would be 
nice if there were a way to read a fixed number of bytes at once into a buffer, 
looping until one had 
read the entire file. This would make it much easier to pipe the data in a file 
to another task, for 
example.

Original issue reported on code.google.com by Charle...@gmail.com on 21 Jan 2007 at 12:14

@GoogleCodeExporter
Copy link
Author

yeah, something similar to how the bzip and zlib callbacks work would be good.  
I'll need to look back at the xar 
io code to see how practical this would be.

Original comment by bbraun on 28 Jan 2007 at 3:50

@GoogleCodeExporter
Copy link
Author

Original comment by bbraun on 18 Apr 2007 at 1:47

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Original comment by hair...@gmail.com on 27 Apr 2007 at 9:56

@GoogleCodeExporter
Copy link
Author

This should be addressed by commit 185.  An example of its use is in 
tools/strextract.c

Original comment by bbraun on 2 Oct 2007 at 7:10

  • Changed state: Fixed

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

No branches or pull requests

1 participant