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