API reference › @evolu/sqlite-wasm › c-api › sqlite3_realloc64

function sqlite3_realloc64(
  deps: SqliteWasmDep,
): (ptr: 0 | SqliteOwnedPtr, byteLength: bigint) => 0 | SqliteOwnedPtr;

Defined in: packages/sqlite-wasm/src/CApi.ts:1093

Resizes memory from sqlite3_malloc, moving its contents to the returned address; NULL memory allocates, and a zero size frees it and returns NULL. When out of memory it returns NULL and leaves the old memory allocated.

Wasm type i(ij). Signature ["sqlite3_realloc64", "*", "*", "i64"] from SQLite's table.

See https://sqlite.org/c3ref/free.html.