Skip to content

ByteSpanExtensions.GetUInt64 Method

Overloads

Name Description
GetUInt64(Span<Byte>) Reads a little-endian UInt64 from a span of bytes.
GetUInt64(Span<Byte>, Endian) Reads a UInt64 from a span of bytes using the specified endianness.

GetUInt64(Span<Byte>)

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

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

View source

Parameters

Name Type Description
bytes Span<Byte>

Returns

UInt64

The UInt64 value.

GetUInt64(Span<Byte>, Endian)

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

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

View source

Parameters

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

Returns

UInt64

The UInt64 value.