MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / getSizes

Method getSizes

data/src/storage.js:89–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 });
88 }
89 getSizes() {
90 return new Promise(async (resolve, reject) => {
91 if (!window.indexedDB) resolve({});
92 const keys = await this.get("?EJS_KEYS!");
93 if (!keys) return resolve({});
94 let rv = {};
95 for (let i = 0; i < keys.length; i++) {
96 const result = await this.get(keys[i]);
97 if (!result || !result.data || typeof result.data.byteLength !== "number") continue;
98 rv[keys[i]] = result.data.byteLength;
99 }
100 resolve(rv);
101 })
102 }
103}
104
105class EJS_DUMMYSTORAGE {

Callers 1

openCacheMenuMethod · 0.45

Calls 1

getMethod · 0.95

Tested by

no test coverage detected