Function

GLib-2.0GLibbyte_array_sized_new

  • Creates a new GLib.ByteArray 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: number

      the number of bytes preallocated

    Returns Uint8Array

    The new GLib.ByteArray