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

Function applyMemoryInitializer

js/sql-debug.js:403630–403638  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

403628 } else {
403629 addRunDependency('memory initializer');
403630 var applyMemoryInitializer = function(data) {
403631 if (data.byteLength) data = new Uint8Array(data);
403632 HEAPU8.set(data, GLOBAL_BASE);
403633 // Delete the typed array that contains the large blob of the memory initializer request response so that
403634 // we won't keep unnecessary memory lying around. However, keep the XHR object itself alive so that e.g.
403635 // its .status field can still be accessed later.
403636 if (Module['memoryInitializerRequest']) delete Module['memoryInitializerRequest'].response;
403637 removeRunDependency('memory initializer');
403638 }
403639 function doBrowserLoad() {
403640 Module['readAsync'](memoryInitializer, applyMemoryInitializer, function() {
403641 throw 'could not load memory initializer ' + memoryInitializer;

Callers 10

worker.sql.jsFile · 0.85
useRequestFunction · 0.85
sql-debug.jsFile · 0.85
useRequestFunction · 0.85
useRequestFunction · 0.85
sql.jsFile · 0.85
useRequestFunction · 0.85
useRequestFunction · 0.85

Calls 1

removeRunDependencyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…