Skip to content

StreamExtensions.ReadUInt32OrThrow Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
streamStream
endianEndianThe endianness to use.

Returns ​

UInt32

The UInt32 value read from the stream.