Encoder7Bit.Encode 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.
Overloads
| Name | Description |
|---|---|
| Encode(ReadOnlySpan<Byte>) |
Encode a sequence of bytes |
| Encode(ReadOnlySpan<Byte>, Int32, Int32) |
Encodes a sequence of bytes |
Encode(ReadOnlySpan<Byte>)
Encode a sequence of bytes
public static byte[] Encode(ReadOnlySpan<byte> data);
static member Encode : ReadOnlySpan<byte> -> byte[]
Public Shared Function Encode (data As ReadOnlySpan(Of Byte)) As Byte()
Parameters
- data
- ReadOnlySpan<Byte>
The data to encode
Returns
The encoded data
Applies to
Encode(ReadOnlySpan<Byte>, Int32, Int32)
Encodes a sequence of bytes
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()
Parameters
- data
- ReadOnlySpan<Byte>
The data to encode
- startIndex
- Int32
The start index in the data
- length
- Int32
The length of the data
Returns
The encoded data