B
bamelyan
GZipStream unzip = new GZipStream(stream, CompressionMode.Decompress, false);
In order to read from unzip.Read(buffer, 0, unknownLength), I need to
allocate enough buffer length.
In order to know how many bytes to allocate I need to call
unzip.Read(buffer, 0, unknownLength) that returns bytes.
How do i get unknownLength to allocate buffer before the Read?
In order to read from unzip.Read(buffer, 0, unknownLength), I need to
allocate enough buffer length.
In order to know how many bytes to allocate I need to call
unzip.Read(buffer, 0, unknownLength) that returns bytes.
How do i get unknownLength to allocate buffer before the Read?