Skip to content

ByteReadOnlySpanExtensions.GetUInt64 Method ​

Overloads ​

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

GetUInt64(ReadOnlySpan<Byte>) ​

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

c#
public static ulong GetUInt64(this ReadOnlySpan<Byte> bytes);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>

Returns ​

UInt64

The UInt64 value.

GetUInt64(ReadOnlySpan<Byte>, Endian) ​

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

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

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>
endianEndianThe endianness to use.

Returns ​

UInt64

The UInt64 value.