共用方式為


Encoder7Bit 類別

定義

這個類別是用來編碼較大的資料區塊,以便使用 Firmata 通訊協定進行傳輸。 它會將 7 個位元組的每個區塊轉換成 8 個位元組的區塊,保留前一個位 0。

public static class Encoder7Bit
type Encoder7Bit = class
Public Class Encoder7Bit
繼承
Encoder7Bit

方法

Decode(ReadOnlySpan<Byte>)

解碼指定的資料序列

Encode(ReadOnlySpan<Byte>)

編碼位元組序列

Encode(ReadOnlySpan<Byte>, Int32, Int32)

編碼位元組序列

Num7BitOutBytes(Int32)

計算 7 位元組編碼所需的位元組數目

Num8BitOutBytes(Int32)

計算解碼期間產生的位元組數目, (結果小於輸入)

適用於