MCPcopy Index your code
hub / github.com/sql-js/sql.js / getMemory

Function getMemory

js/sql-debug.js:672–676  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

670
671// Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
672function getMemory(size) {
673 if (!staticSealed) return staticAlloc(size);
674 if (!runtimeInitialized) return dynamicAlloc(size);
675 return _malloc(size);
676}
677Module["getMemory"] = getMemory;
678
679/** @type {function(number, number=)} */

Callers

nothing calls this directly

Calls 3

_mallocFunction · 0.85
staticAllocFunction · 0.70
dynamicAllocFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…