ByteReadOnlySpanExtensions.GetInt64 Method ​
Overloads ​
| Name | Description |
|---|---|
GetInt64(ReadOnlySpan<Byte>) | Reads a little-endian Int64 from a read-only span of bytes. |
GetInt64(ReadOnlySpan<Byte>, Endian) | Reads a Int64 from a read-only span of bytes using the specified endianness. |
GetInt64(ReadOnlySpan<Byte>) ​
Reads a little-endian Int64 from a read-only span of bytes.
c#
public static long GetInt64(this ReadOnlySpan<Byte> bytes);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | ReadOnlySpan<Byte> |
Returns ​
The Int64 value.
GetInt64(ReadOnlySpan<Byte>, Endian) ​
Reads a Int64 from a read-only span of bytes using the specified endianness.
c#
public static long GetInt64(this ReadOnlySpan<Byte> bytes, Endian endian);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | ReadOnlySpan<Byte> | |
endian | Endian | The endianness to use. |
Returns ​
The Int64 value.