BinaryReader.ReadUInt64 方法

定义

重要

此 API 不符合 CLS。

从当前流中读取 8 字节无符号整数并使流的当前位置提升 8 个字节。Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.

public:
 virtual System::UInt64 ReadUInt64();
[System.CLSCompliant(false)]
public virtual ulong ReadUInt64 ();
[<System.CLSCompliant(false)>]
abstract member ReadUInt64 : unit -> uint64
override this.ReadUInt64 : unit -> uint64
Public Overridable Function ReadUInt64 () As ULong

返回

UInt64

从该流中读取的 8 字节无符号整数。An 8-byte unsigned integer read from this stream.

属性

例外

已到达流的末尾。The end of the stream is reached.

出现 I/O 错误。An I/O error occurred.

流已关闭。The stream is closed.

注解

BinaryReader 读取失败后不还原文件位置。BinaryReader does not restore the file position after an unsuccessful read.

BinaryReader 以小字节序格式读取此数据类型。BinaryReader reads this data type in little-endian format.

有关常见 i/o 任务的列表,请参阅 常见 I/o 任务For a list of common I/O tasks, see Common I/O Tasks.

适用于