Skip to content

SegmentBuilder.CalculateAppendSize(ReadOnlySpan<byte>)

CalculateAppendSize(ReadOnlySpan<byte>)

static
View source
public static int CalculateAppendSize(ReadOnlySpan<byte> memory)
Calculates how much space will be needed to append the provided bytes into the segment.

Parameters

memoryReadOnlySpan<byte>