API reference › @evolu/sqlite-wasm › allocWasm
function allocWasm(
deps: SqliteWasmDep,
): (byteLength: number) => Result<SqliteOwnedPtr, SqliteNoMemError>;
Defined in: packages/sqlite-wasm/src/Memory.ts:49
Allocates at least one byte with sqlite3_malloc, so a zero-length value
keeps a non-NULL address.
A request above maxInt32 fails without calling sqlite3_malloc, which
takes a C int and would wrap it.