SegmentBuilder.Append 方法

定义

重载

Append(ArraySegment<Byte>, Int32, Byte[])

将字节数组追加到段末尾

Append(ArraySegment<Byte>, Int32, String)

将字符串追加到段的末尾

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

适用于