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