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

Function LazyUint8Array

js/sql-debug.js:4187–4190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4185 },createLazyFile:function (parent, name, url, canRead, canWrite) {
4186 // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
4187 function LazyUint8Array() {
4188 this.lengthKnown = false;
4189 this.chunks = []; // Loaded chunks. Index is the chunk number
4190 }
4191 LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
4192 if (idx > this.length-1 || idx < 0) {
4193 return undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…