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