Function

GLib-2.0GLibbyte_array_remove_index_fast

  • Removes the byte at the given index from a GLib.ByteArray. The last element in the array is used to fill in the space, so this function does not preserve the order of the GLib.ByteArray. But it is faster than GLib.ByteArray.remove_index.

    Parameters

    • array: string | Uint8Array<ArrayBufferLike>

      a byte array

    • index_: number

      the index of the byte to remove

    Returns Uint8Array

    The GLib.ByteArray