B
Bob
I have a network stream of data I am reading, of which, a section is
compressed and can be decompressed using GZipStream's decompression. This
part works great, however, even if the part being decompressed is 1K,
GZipStream /always/ reads 4K minimum off my primary stream. Using .NET
Reflector I can see they have a 4K buffer internally and always read in
chunks of 4K.
Basically, I have to force GZipStream to only read what is compressed, and
no more. This should be possible because I am reading fixed sized
structures out of GZipStream and upon the last structure I should begin
reading uncompressed data again.
Do I have any options here?
Thanks
compressed and can be decompressed using GZipStream's decompression. This
part works great, however, even if the part being decompressed is 1K,
GZipStream /always/ reads 4K minimum off my primary stream. Using .NET
Reflector I can see they have a 4K buffer internally and always read in
chunks of 4K.
Basically, I have to force GZipStream to only read what is compressed, and
no more. This should be possible because I am reading fixed sized
structures out of GZipStream and upon the last structure I should begin
reading uncompressed data again.
Do I have any options here?
Thanks