GzipDecompressionStream.ReadNextFileHeader Method
Namespace: Rebex.IO.Compression.Streams
Assembly: Rebex.Zip.dll (version 7.0.9119)
ReadNextFileHeader()
Reads the GZIP header from the stream position and fills the class properties with values read from the GZIP header. This method is not intended for seeking to next GZIP header position. This method can be called only when the stream was just opened (and no method was called already) or when a file was read completely (the Read(Byte[], Int32, Int32) method reads no data). Calling this method before the whole file has been read throws an InvalidOperationException.
Declaration
public bool ReadNextFileHeader()
Returns
Type | Description |
---|---|
Boolean | True if the next GZIP header was read; false if there is no GZIP header to read. |