drupflare/worker - v1.0.4
    Preparing search index...

    Function toStorableBytes

    • Copies a heap out of wasm memory so it can be stored.

      uint8.set(arrayBuffer) copies zero bytes and throws nothing (an ArrayBuffer is not array-like), so the source is wrapped in a view first. The copy also detaches from the live WebAssembly.Memory, whose buffer is replaced on growth.

      Parameters

      • src: ArrayBufferLike | Uint8Array<ArrayBufferLike>

      Returns Uint8Array