Encoder7Bit.Encode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 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[]
編碼的資料。