Skip to content

StreamExtensions.ReadUInt24OrThrow Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
streamStream
endianEndianThe endianness to use.

Returns ​

UInt24

The UInt24 value read from the stream.