Skip to content

ByteArrayExtensions.GetUInt64 Method ​

Overloads ​

NameDescription
GetUInt64(Byte[], Int32)Reads a little-endian UInt64 from a byte array at the specified index.
GetUInt64(Byte[], Int32, Endian)Reads a UInt64 from a byte array at the specified index using the specified endianness.

GetUInt64(Byte[], Int32) ​

Reads a little-endian UInt64 from a byte array at the specified index.

c#
public static ulong GetUInt64(this Byte[] bytes, int index);

View source

Parameters ​

NameTypeDescription
bytesByte[]
indexInt32The zero-based index to read from.

Returns ​

UInt64

The UInt64 value.

GetUInt64(Byte[], Int32, Endian) ​

Reads a UInt64 from a byte array at the specified index using the specified endianness.

c#
public static ulong GetUInt64(this Byte[] bytes, int index, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesByte[]
indexInt32The zero-based index to read from.
endianEndianThe endianness to use.

Returns ​

UInt64

The UInt64 value.