ByteArrayExtensions.SetInt64 Method
Overloads
SetInt64(Byte[], Int32, Int64)
Writes a little-endian Int64 to a byte array at the specified index.
public static void SetInt64(this Byte[] bytes, int index, long value);
View source
Parameters
| Name |
Type |
Description |
| bytes |
Byte[] |
|
| index |
Int32 |
The zero-based index to write to. |
| value |
Int64 |
The value to write. |
SetInt64(Byte[], Int32, Int64, Endian)
Writes a Int64 to a byte array at the specified index using the specified endianness.
public static void SetInt64(this Byte[] bytes, int index, long value, Endian endian);
View source
Parameters
| Name |
Type |
Description |
| bytes |
Byte[] |
|
| index |
Int32 |
The zero-based index to write to. |
| value |
Int64 |
The value to write. |
| endian |
Endian |
The endianness to use. |