SegmentBuilder.Append 方法

定义

重载

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>)

Source:
SegmentBuilder.cs

将字节数组追加到段的末尾

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[])

Source:
SegmentBuilder.cs

将字节数组追加到段的末尾

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>)

Source:
SegmentBuilder.cs

将字节 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

适用于

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

适用于

Append(ArraySegment<Byte>, Int32, String)

Source:
SegmentBuilder.cs

将字符串追加到段的末尾

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

适用于