BinaryReader.Read7BitEncodedInt BinaryReader.Read7BitEncodedInt BinaryReader.Read7BitEncodedInt BinaryReader.Read7BitEncodedInt Method

Definition

Reads in a 32-bit integer in compressed format.

protected public:
 int Read7BitEncodedInt();
protected internal int Read7BitEncodedInt ();
member this.Read7BitEncodedInt : unit -> int
Protected Friend Function Read7BitEncodedInt () As Integer

Returns

A 32-bit integer in compressed format.

Exceptions

Remarks

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.

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

Applies to

See Also