Language
Edit

FirmataCommandSequence.DecodeInt32(ReadOnlySpan<Byte>, Int32) Method

Definition

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

Applies to