Skip to content

StreamExtensions.ReadInt64OrThrow Method ​

Definition ​

Reads a Int64 from the stream, throwing EndOfStreamException if the end of the stream has been reached.

c#
public static long ReadInt64OrThrow(this Stream stream, Endian endian = Endian.MrKWatkins.BinaryPrimitives.Endian);

View source

Parameters ​

NameTypeDescription
streamStream
endianEndianThe endianness to use.

Returns ​

Int64

The Int64 value read from the stream.