Function

GLib-2.0GLibbyte_array_stealSince 2.64

  • Frees the data in the array and resets the size to zero, while the underlying array is preserved for use elsewhere and returned to the caller.

    Parameters

    • array: string | Uint8Array<ArrayBufferLike>

      a byte array

    Returns Uint8Array

    The allocated element data

    2.64