FirmataCommandSequence.DecodeInt32(ReadOnlySpan<Byte>, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decode an int from packed 7-bit data. This way of encoding uints is only used in extension modules.
public static int DecodeInt32(ReadOnlySpan<byte> data, int fromOffset);
static member DecodeInt32 : ReadOnlySpan<byte> * int -> int
Public Shared Function DecodeInt32 (data As ReadOnlySpan(Of Byte), fromOffset As Integer) As Integer
Parameters
- data
- ReadOnlySpan<Byte>
Data. 5 bytes expected
- fromOffset
- Int32
Start offset in data
Returns
The decoded number