Dibaca dalam bahasa Inggeris Edit

Kongsi melalui


Encoder7Bit Class

Definition

This class is used to encode larger chunks of data for transmission using the Firmata protocol. It converts each block of 7 bytes into a block of 8 bytes, keeping the top bit 0.

C#
public static class Encoder7Bit
Inheritance
Encoder7Bit

Methods

Decode(ReadOnlySpan<Byte>)

Decodes the given data sequence

Encode(ReadOnlySpan<Byte>, Int32, Int32)

Encodes a sequence of bytes

Encode(ReadOnlySpan<Byte>)

Encode a sequence of bytes

Num7BitOutBytes(Int32)

Calculates the number of bytes required for the 7-byte encoding

Num8BitOutBytes(Int32)

Calculates the number of bytes generated during decode (the result is smaller than the input)

Applies to

Produk Versi
.NET IoT Libraries 2.2.0