Lines Matching refs:wasm
121 const wasm = sqlite3.wasm;
188 opfsVfs.$zName = wasm.allocCString("opfs");
616 try{wasm.uninstallFunction(v)}
639 const pFunc = wasm.installFunction(fProxy, tgt.memberSignature(name, true));
679 wasm.setMemValue(pOut, f.lockMode ? 1 : 0, 'i32');
711 wasm.setMemValue(pSz64, sz, 'i64');
741 wasm.heap8u().set(f.sabView.subarray(0, n), pDest);
777 f.sabView.set(wasm.heap8u().subarray(pSrc, pSrc+n));
795 const rc = opRun('xAccess', wasm.cstringToJs(zName));
796 wasm.setMemValue( pOut, (rc ? 0 : 1), 'i32' );
803 wasm.setMemValue(pOut, 2440587.5 + (new Date().getTime()/86400000),
809 wasm.setMemValue(pOut, (2440587.5 * 86400000) + new Date().getTime(),
815 opRun('xDelete', wasm.cstringToJs(zName), doSyncDir, false);
824 const i = wasm.cstrncpy(pOut, zName, nOut);
841 zName = wasm.cstringToJs(zName);
853 wasm.setMemValue(pOutFlags, capi.SQLITE_OPEN_READONLY, 'i32');
873 const heap = wasm.heap8u();
978 return wasm.exports.sqlite3_vfs_register(
1173 const scope = wasm.scopedAllocPush();
1181 const pOut = wasm.scopedAlloc(8);
1183 const zDbFile = wasm.scopedAllocCString(dbFile);
1190 rc = wasm.getMemValue(pOut,'i32');
1201 rc = wasm.getMemValue(pOut,'i32');
1207 wasm.setMemValue(pOut,0,'i64');
1210 log("xFileSize says:",wasm.getMemValue(pOut, 'i64'));
1213 const readBuf = wasm.scopedAlloc(16);
1215 wasm.setMemValue(readBuf+6,0);
1216 let jRead = wasm.cstringToJs(readBuf);
1229 rc = wasm.getMemValue(pOut,'i32');
1234 wasm.scopedAllocPop(scope);