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