Language
Edit

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

Definition

Decode an uint from packed 7-bit data. This way of encoding uints is only used in extension modules.

public static uint DecodeUInt32(ReadOnlySpan<byte> data, int fromOffset);
static member DecodeUInt32 : ReadOnlySpan<byte> * int -> uint32
Public Shared Function DecodeUInt32 (data As ReadOnlySpan(Of Byte), fromOffset As Integer) As UInteger

Parameters

data
ReadOnlySpan<Byte>

Data. 5 bytes expected

fromOffset
Int32

Start offset in data

Returns

The decoded unsigned integer

Exceptions

The received data is invalid

Applies to