Amazon Vinyl
    Preparing search index...

    Function bufferToArrayBuffer

    • Returns the bytes a buffer view spans as a standalone ArrayBuffer.

      Reading buffer from a view directly is rarely correct; it spans the whole underlying allocation, ignoring the view's byteOffset and byteLength.

      Parameters

      • buffer: ArrayBuffer | ArrayBufferView<ArrayBuffer>

        An ArrayBuffer, which is returned as is, or a view to copy from.

      Returns ArrayBuffer