Function

GLib-2.0GLibbyte_array_prepend

  • Adds the given data to the start of the GLib.ByteArray. The array will grow in size automatically if necessary.

    Parameters

    • array: string | Uint8Array<ArrayBufferLike>

      a byte array

    • data: string | Uint8Array<ArrayBufferLike>

      the byte data to be added

    Returns Uint8Array

    The GLib.ByteArray