API

Function GetBlobBufferSource

  • Gets a BufferSource from an ArrayBufferView, ensuring that the returned ArrayBuffer is not a SharedArrayBuffer. If the input view's buffer is a SharedArrayBuffer, a new ArrayBuffer is created and the data is copied over.

    Parameters

    • view: ArrayBufferView

      The input ArrayBufferView

    Returns BufferSource

    An ArrayBuffer containing the data from the view