Hunny Software Library Reference

ByteStringBuilder Constructor (Int32)

Constructor that takes initial capacity argument.

[Visual Basic]
Overloads Public Sub New( _
   ByVal size As Integer _
)
[C#]
public ByteStringBuilder(
   int size
);

Parameters

size
desired initial length of internal byte array

Remarks

If you know the size your buffer will eventually reach, you can eliminate the copying associated with resizing the internal byte array by specifying the initial capacity using this constructor.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionsize < 0

See Also

ByteStringBuilder Class | Hunny.Base Namespace | ByteStringBuilder Constructor Overload List