ReadOnlyMemoryExtensions.GetInt32 Method
Overloads
| Name | Description |
|---|---|
| GetInt32(ReadOnlyMemory<Byte>, Int32) | Reads a little-endian Int32 from read-only memory at the specified index. |
| GetInt32(ReadOnlyMemory<Byte>, Int32, Endian) | Reads an Int32 from read-only memory at the specified index using the specified endianness. |
GetInt32(ReadOnlyMemory<Byte>, Int32)
Reads a little-endian Int32 from read-only memory at the specified index.
public static int GetInt32(this ReadOnlyMemory<Byte> bytes, int index);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | ReadOnlyMemory<Byte> | |
| index | Int32 | The zero-based index to read from. |
Returns
The Int32 value.
GetInt32(ReadOnlyMemory<Byte>, Int32, Endian)
Reads an Int32 from read-only memory at the specified index using the specified endianness.
public static int GetInt32(this ReadOnlyMemory<Byte> bytes, int index, Endian endian);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | ReadOnlyMemory<Byte> | |
| index | Int32 | The zero-based index to read from. |
| endian | Endian | The endianness to use. |
Returns
The Int32 value.