Muokkaa

Jaa


BinaryReader.ReadInt64 Method

Definition

Reads an 8-byte signed integer from the current stream and advances the current position of the stream by eight bytes.

public:
 virtual long ReadInt64();
public virtual long ReadInt64 ();
abstract member ReadInt64 : unit -> int64
override this.ReadInt64 : unit -> int64
Public Overridable Function ReadInt64 () As Long

Returns

An 8-byte signed integer read from the current stream.

Exceptions

The end of the stream is reached.

The stream is closed.

An I/O error occurred.

Remarks

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

BinaryReader reads this data type in little-endian format.

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

Applies to

See also