SegmentBuilder.Append 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Append(ArraySegment<Byte>, Int32, ArraySegment<Byte>) |
將位元組陣列附加至區段結尾 |
Append(ArraySegment<Byte>, Int32, Byte[]) |
將位元組陣列附加至區段結尾 |
Append(ArraySegment<Byte>, Int32, ReadOnlyMemory<Byte>) |
將 ReadOnlyMemory<T> 位元組的 附加至區段結尾 |
Append(ArraySegment<Byte>, Int32, ReadOnlySpan<Byte>) |
將 ReadOnlyMemory<T> 位元組的 附加至區段結尾 |
Append(ArraySegment<Byte>, Int32, String) |
將字串附加至區段的結尾 |
Append(ArraySegment<Byte>, Int32, ArraySegment<Byte>)
將位元組陣列附加至區段結尾
public static void Append (ArraySegment<byte> segment, ref int writerOffset, ArraySegment<byte> append);
static member Append : ArraySegment<byte> * int * ArraySegment<byte> -> unit
Public Shared Sub Append (segment As ArraySegment(Of Byte), ByRef writerOffset As Integer, append As ArraySegment(Of Byte))
參數
- segment
- ArraySegment<Byte>
- writerOffset
- Int32
- append
- ArraySegment<Byte>
適用於
Append(ArraySegment<Byte>, Int32, Byte[])
將位元組陣列附加至區段結尾
public static void Append (ArraySegment<byte> segment, ref int writerOffset, byte[] bytes);
static member Append : ArraySegment<byte> * int * byte[] -> unit
Public Shared Sub Append (segment As ArraySegment(Of Byte), ByRef writerOffset As Integer, bytes As Byte())
參數
- segment
- ArraySegment<Byte>
- writerOffset
- Int32
- bytes
- Byte[]
適用於
Append(ArraySegment<Byte>, Int32, ReadOnlyMemory<Byte>)
將 ReadOnlyMemory<T> 位元組的 附加至區段結尾
public static void Append (ArraySegment<byte> segment, ref int writerOffset, ReadOnlyMemory<byte> bytes);
static member Append : ArraySegment<byte> * int * ReadOnlyMemory<byte> -> unit
Public Shared Sub Append (segment As ArraySegment(Of Byte), ByRef writerOffset As Integer, bytes As ReadOnlyMemory(Of Byte))
參數
- segment
- ArraySegment<Byte>
- writerOffset
- Int32
- bytes
- ReadOnlyMemory<Byte>
適用於
Append(ArraySegment<Byte>, Int32, ReadOnlySpan<Byte>)
將 ReadOnlyMemory<T> 位元組的 附加至區段結尾
public static void Append (ArraySegment<byte> segment, ref int writerOffset, ReadOnlySpan<byte> bytes);
static member Append : ArraySegment<byte> * int * ReadOnlySpan<byte> -> unit
Public Shared Sub Append (segment As ArraySegment(Of Byte), ByRef writerOffset As Integer, bytes As ReadOnlySpan(Of Byte))
參數
- segment
- ArraySegment<Byte>
- writerOffset
- Int32
- bytes
- ReadOnlySpan<Byte>
適用於
Append(ArraySegment<Byte>, Int32, String)
將字串附加至區段的結尾
public static void Append (ArraySegment<byte> segment, ref int writerOffset, string str);
static member Append : ArraySegment<byte> * int * string -> unit
Public Shared Sub Append (segment As ArraySegment(Of Byte), ByRef writerOffset As Integer, str As String)
參數
- segment
- ArraySegment<Byte>
- writerOffset
- Int32
- str
- String