Member Junction
    Preparing search index...
    • Returns bytes as an ArrayBuffer holding exactly those bytes. Hands back the backing buffer when the view covers all of it, and copies otherwise (Node's Buffer pool shares one slab between small buffers; transferring that slab to another thread would detach every other buffer on it).

      Only for buffers this thread made (a JPEG): an SDK frame covers all of its buffer, so it comes back unchanged, and Node refuses to transfer it (DataCloneError). Copy a frame with CopyI420Planes.

      Parameters

      • bytes: Uint8Array

      Returns ArrayBuffer