mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Big Files - How Compress and Decompress #501
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FernandoBanhos on GitHub (Mar 23, 2024).
Is there any way to read a large file, and compress it in parts, through stream reading, like small buffers?
There is the BrotliEncoderCompressStream BrotliDecoderDecompressStream function, as far as I understand, I have to capture the entire contents of the file and instantiate it in memory to be able to compress or decompress it. So that at the end you can get the result and save it in another large file
Thanks!
@eustas commented on GitHub (Mar 25, 2024):
Hi. There is API for compressing file parts. Please take a look at
BROTLI_PARAM_STREAM_OFFSETdocumentation.@FernandoBanhos commented on GitHub (Mar 25, 2024):
I am following the documentation available at https://www.brotli.org/encode.html
@FernandoBanhos commented on GitHub (Mar 25, 2024):
see my code
@eustas commented on GitHub (Mar 26, 2024):
Haven't seen Pascal for 20 years =)
Now I can see that documentation on brotli.org is outdated (it is for 1.0.0); will update it soon.
@FernandoBanhos commented on GitHub (Mar 26, 2024):
Do you have updated documentation?
I'm developing the Brotli library in Pascal, to make it available in a github repository
thanks!
@eustas commented on GitHub (Apr 5, 2024):
New documentation is live: https://brotli.org/encode.html#a9a8
Going to setup read-the-doc, so that fresh documentation will be always available.
@FernandoBanhos commented on GitHub (Apr 8, 2024):
thanks for the help,
my Brotli library repository, has been completed: https://github.com/FernandoBanhos/pascal_brotli