System.IO.BinaryReader.Read7BitEncodedInt Method

Reads in a 32-bit integer in compressed format.

Syntax

protected int Read7BitEncodedInt ()

Returns

A 32-bit integer in compressed format.

Remarks

System.IO.BinaryReader does not restore the file position after an unsuccessful read.

If the integer will fit in seven bits, the integer takes only one byte of space. The integer is expected to have been written through BinaryWriter.Write7BitEncodedInt(int).

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0