Skip to content

ByteReadOnlySpanExtensions.GetUInt32 Method ​

Overloads ​

NameDescription
GetUInt32(ReadOnlySpan<Byte>)Reads a little-endian UInt32 from a read-only span of bytes.
GetUInt32(ReadOnlySpan<Byte>, Endian)Reads a UInt32 from a read-only span of bytes using the specified endianness.

GetUInt32(ReadOnlySpan<Byte>) ​

Reads a little-endian UInt32 from a read-only span of bytes.

c#
public static uint GetUInt32(this ReadOnlySpan<Byte> bytes);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>

Returns ​

UInt32

The UInt32 value.

GetUInt32(ReadOnlySpan<Byte>, Endian) ​

Reads a UInt32 from a read-only span of bytes using the specified endianness.

c#
public static uint GetUInt32(this ReadOnlySpan<Byte> bytes, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>
endianEndianThe endianness to use.

Returns ​

UInt32

The UInt32 value.