Function

GLib-2.0GLibbyte_array_set_size

  • Sets the size of the GLib.ByteArray, expanding it if necessary.

    Parameters

    • array: string | Uint8Array<ArrayBufferLike>

      a byte array

    • length: number

      the new size of the GLib.ByteArray

    Returns Uint8Array

    The GLib.ByteArray