Jun-02-2021, 10:16 PM
(Jun-02-2021, 08:53 PM)jefsummers Wrote: So you want to read an uncompressed source file and compress it, but did not want the compression to be done in memory? Where did you want the compression to occur?
I interpreted the question as wanting to compress it, but read the data as a stream so the entire file is not in memory at one time. The docs suggested to me that compressing a single object is simple, but if you wanted a stream compressor, that's not explicitly shown.
I would assume there's some way to chain the blockIO devices so you could
read()
the compression results (rather than direct it to a file on disk), but wasn't sure how to accomplish that.