SegmentBuilder.CalculateAppendSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CalculateAppendSize(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(Byte[])
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(String)
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