Skip to main content

Module large_memory_buffer

Module large_memory_buffer 

Source
Expand description

A module for allocating large remote buffers not in WASM memory. WASM generally does not support resizing the heap after it has been allocated, so we need to allocate a buffer that can be released again.

The buffer is allocated once to an exact size at construction and is never resized, since resizing a Uint8Array on WASM is slow (it requires allocating a new array and copying).

This is used for streaming encryption in the legacy format.

Structsยง

Buffer
InvalidIndexError ๐Ÿ”’