StreamExtensions.ReadUInt64OrThrow Method
Definition
Reads a UInt64 from the stream, throwing EndOfStreamException if the end of the stream has been reached.
public static ulong ReadUInt64OrThrow(this Stream stream, Endian endian = Endian.MrKWatkins.BinaryPrimitives.Endian);
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Stream | |
| endian | Endian | The endianness to use. |
Returns
The UInt64 value read from the stream.