Function

GLibByteArraysized_new

Declaration

GByteArray*
g_byte_array_sized_new (
  guint reserved_size
)

Description

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.

Parameters

reserved_size guint
 

Number of bytes preallocated.

Return value

Returns: An array of guint8
 

The new GByteArray.

 The data is owned by the called function.