ReadOnlyMemoryExtensions.GetUInt64 Method
Overloads
| Name | Description |
|---|---|
| GetUInt64(ReadOnlyMemory<Byte>, Int32) | Reads a little-endian UInt64 from read-only memory at the specified index. |
| GetUInt64(ReadOnlyMemory<Byte>, Int32, Endian) | Reads a UInt64 from read-only memory at the specified index using the specified endianness. |
GetUInt64(ReadOnlyMemory<Byte>, Int32)
Reads a little-endian UInt64 from read-only memory at the specified index.
public static ulong GetUInt64(this ReadOnlyMemory<Byte> bytes, int index);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | ReadOnlyMemory<Byte> | |
| index | Int32 | The zero-based index to read from. |
Returns
The UInt64 value.
GetUInt64(ReadOnlyMemory<Byte>, Int32, Endian)
Reads a UInt64 from read-only memory at the specified index using the specified endianness.
public static ulong GetUInt64(this ReadOnlyMemory<Byte> bytes, int index, Endian endian);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | ReadOnlyMemory<Byte> | |
| index | Int32 | The zero-based index to read from. |
| endian | Endian | The endianness to use. |
Returns
The UInt64 value.