Edit

Share via


SegmentBuilder.CalculateAppendSize Method

Definition

Overloads

CalculateAppendSize(ArraySegment<Byte>)

Calculates how much space will be needed to append the provided bytes into the segment.

CalculateAppendSize(Byte[])

Calculates how much space will be needed to append the provided bytes into the segment.

CalculateAppendSize(ReadOnlyMemory<Byte>)

Calculates how much space will be needed to append the provided bytes into the segment.

CalculateAppendSize(ReadOnlySpan<Byte>)

Calculates how much space will be needed to append the provided bytes into the segment.

CalculateAppendSize(String)

Calculates how much space will be needed to append the provided string into the segment.

CalculateAppendSize(ArraySegment<Byte>)

Source:
SegmentBuilder.cs

Calculates how much space will be needed to append the provided bytes into the segment.

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

Parameters

segment
ArraySegment<Byte>

Returns

Applies to

CalculateAppendSize(Byte[])

Source:
SegmentBuilder.cs

Calculates how much space will be needed to append the provided bytes into the segment.

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

Parameters

bytes
Byte[]

Returns

Applies to

CalculateAppendSize(ReadOnlyMemory<Byte>)

Source:
SegmentBuilder.cs

Calculates how much space will be needed to append the provided bytes into the segment.

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

Parameters

Returns

Applies to

CalculateAppendSize(ReadOnlySpan<Byte>)

Calculates how much space will be needed to append the provided bytes into the segment.

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

Parameters

memory
ReadOnlySpan<Byte>

Returns

Applies to

CalculateAppendSize(String)

Source:
SegmentBuilder.cs

Calculates how much space will be needed to append the provided string into the segment.

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

Parameters

str
String

Returns

Applies to