Reads the GZIP header from the current 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(array<Byte>[]()[][], Int32, Int32) method reads no data). Calling this method before the whole file has been read throws an InvalidOperationException.

Namespace:  Rebex.IO.Compression.Streams
Assembly:  Rebex.Zip (in Rebex.Zip.dll)


Visual Basic
Public Function ReadNextFileHeader As Boolean
public bool ReadNextFileHeader()

Return Value

True if the next GZIP header was read; false if there is no GZIP header to read.

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also