BinaryReader.Read7BitEncodedInt Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Reads in a 32-bit integer in compressed format.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| EndOfStreamException | The end of the stream is reached. |
| ObjectDisposedException | The stream is closed. |
| IOException | An I/O error occurs. |
| FormatException | The stream is corrupted. |
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.