ByteIReadOnlyListExtensions.GetInt64 Method ​
Overloads ​
| Name | Description |
|---|---|
GetInt64(IReadOnlyList<Byte>, Int32) | Reads a little-endian Int64 from a read-only list of bytes at the specified index. |
GetInt64(IReadOnlyList<Byte>, Int32, Endian) | Reads a Int64 from a read-only list of bytes at the specified index using the specified endianness. |
GetInt64(IReadOnlyList<Byte>, Int32) ​
Reads a little-endian Int64 from a read-only list of bytes at the specified index.
c#
public static long GetInt64(this IReadOnlyList<Byte> bytes, int index);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | IReadOnlyList<Byte> | |
index | Int32 | The zero-based index to read from. |
Returns ​
The Int64 value.
GetInt64(IReadOnlyList<Byte>, Int32, Endian) ​
Reads a Int64 from a read-only list of bytes at the specified index using the specified endianness.
c#
public static long GetInt64(this IReadOnlyList<Byte> bytes, int index, Endian endian);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | IReadOnlyList<Byte> | |
index | Int32 | The zero-based index to read from. |
endian | Endian | The endianness to use. |
Returns ​
The Int64 value.