When using a GZipStream, is there any way to know how many compressed bytes were written?
For example:
// "buffer" is data from a text file
// "offset" is 0
// "count" is 100
stream.Write(bu ffer, offset, count);
This is going to write the compressed data to the underlying data store. Is there any way to get the length of this data?
Note: I know you can use a MemoryStream to get the size but this inefficient.
For example:
// "buffer" is data from a text file
// "offset" is 0
// "count" is 100
stream.Write(bu ffer, offset, count);
This is going to write the compressed data to the underlying data store. Is there any way to get the length of this data?
Note: I know you can use a MemoryStream to get the size but this inefficient.
Comment