ByteArray.sizedNew

Creates a new #GByteArray with @reserved_size bytes preallocated. This avoids frequent reallocation, if you are going to add many bytes to the array. Note however that the size of the array is still 0.

class ByteArray
static
sizedNew

Parameters

reservedSize uint

number of bytes preallocated

Return Value

Type: ByteArray

the new #GByteArray

Meta