MCPcopy Create free account
hub / github.com/sql-js/sql.js / alignMemory

Function alignMemory

js/sql-debug.js:322–326  ·  view source on GitHub ↗
(size, factor)

Source from the content-addressed store, hash-verified

320}
321
322function alignMemory(size, factor) {
323 if (!factor) factor = STACK_ALIGN; // stack alignment (16-byte) by default
324 var ret = size = Math.ceil(size / factor) * factor;
325 return ret;
326}
327
328function getNativeTypeSize(type) {
329 switch (type) {

Callers 1

sql-debug.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…