共用方式為


Encoder7Bit.Encode 方法

定義

多載

Encode(ReadOnlySpan<Byte>)

編碼位元組序列

Encode(ReadOnlySpan<Byte>, Int32, Int32)

編碼位元組序列

Encode(ReadOnlySpan<Byte>)

編碼位元組序列

public static byte[] Encode (ReadOnlySpan<byte> data);
static member Encode : ReadOnlySpan<byte> -> byte[]
Public Shared Function Encode (data As ReadOnlySpan(Of Byte)) As Byte()

參數

data
ReadOnlySpan<Byte>

要編碼的資料

傳回

Byte[]

編碼的資料。

適用於

Encode(ReadOnlySpan<Byte>, Int32, Int32)

編碼位元組序列

public static byte[] Encode (ReadOnlySpan<byte> data, int startIndex, int length);
static member Encode : ReadOnlySpan<byte> * int * int -> byte[]
Public Shared Function Encode (data As ReadOnlySpan(Of Byte), startIndex As Integer, length As Integer) As Byte()

參數

data
ReadOnlySpan<Byte>

要編碼的資料

startIndex
Int32

資料中的開始索引

length
Int32

資料的長度

傳回

Byte[]

編碼的資料。

適用於