FirmataCommandSequence.DecodeUInt32(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 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