Skip to content

ByteSpanExtensions.GetUInt64 Method ​

Overloads ​

NameDescription
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.

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

View source

Parameters ​

NameTypeDescription
bytesSpan<Byte>

Returns ​

UInt64

The UInt64 value.

GetUInt64(Span<Byte>, Endian) ​

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

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

View source

Parameters ​

NameTypeDescription
bytesSpan<Byte>
endianEndianThe endianness to use.

Returns ​

UInt64

The UInt64 value.