Skip to content

ByteReadOnlySpanExtensions.GetUInt64 Method

Overloads

Name Description
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.

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

View source

Parameters

Name Type Description
bytes ReadOnlySpan<Byte>

Returns

UInt64

The UInt64 value.

GetUInt64(ReadOnlySpan<Byte>, Endian)

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

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

View source

Parameters

Name Type Description
bytes ReadOnlySpan<Byte>
endian Endian The endianness to use.

Returns

UInt64

The UInt64 value.