共用方式為


SegmentBuilder.CalculateAppendSize 方法

定義

多載

CalculateAppendSize(ArraySegment<Byte>)

計算將提供的位元組附加至區段所需的空間量。

CalculateAppendSize(Byte[])

計算將提供的位元組附加至區段所需的空間量。

CalculateAppendSize(ReadOnlyMemory<Byte>)

計算將提供的位元組附加至區段所需的空間量。

CalculateAppendSize(ReadOnlySpan<Byte>)

計算將提供的位元組附加至區段所需的空間量。

CalculateAppendSize(String)

計算將所提供字串附加至區段所需的空間量。

CalculateAppendSize(ArraySegment<Byte>)

來源:
SegmentBuilder.cs

計算將提供的位元組附加至區段所需的空間量。

public static int CalculateAppendSize (ArraySegment<byte> segment);
static member CalculateAppendSize : ArraySegment<byte> -> int
Public Shared Function CalculateAppendSize (segment As ArraySegment(Of Byte)) As Integer

參數

segment
ArraySegment<Byte>

傳回

適用於

CalculateAppendSize(Byte[])

來源:
SegmentBuilder.cs

計算將提供的位元組附加至區段所需的空間量。

public static int CalculateAppendSize (byte[] bytes);
static member CalculateAppendSize : byte[] -> int
Public Shared Function CalculateAppendSize (bytes As Byte()) As Integer

參數

bytes
Byte[]

傳回

適用於

CalculateAppendSize(ReadOnlyMemory<Byte>)

來源:
SegmentBuilder.cs

計算將提供的位元組附加至區段所需的空間量。

public static int CalculateAppendSize (ReadOnlyMemory<byte> memory);
static member CalculateAppendSize : ReadOnlyMemory<byte> -> int
Public Shared Function CalculateAppendSize (memory As ReadOnlyMemory(Of Byte)) As Integer

參數

傳回

適用於

CalculateAppendSize(ReadOnlySpan<Byte>)

計算將提供的位元組附加至區段所需的空間量。

public static int CalculateAppendSize (ReadOnlySpan<byte> memory);
static member CalculateAppendSize : ReadOnlySpan<byte> -> int
Public Shared Function CalculateAppendSize (memory As ReadOnlySpan(Of Byte)) As Integer

參數

memory
ReadOnlySpan<Byte>

傳回

適用於

CalculateAppendSize(String)

來源:
SegmentBuilder.cs

計算將所提供字串附加至區段所需的空間量。

public static int CalculateAppendSize (string str);
static member CalculateAppendSize : string -> int
Public Shared Function CalculateAppendSize (str As String) As Integer

參數

str
String

傳回

適用於