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

Method decompress

data/src/compression.js:16–25  ·  view source on GitHub ↗
(data, updateMsg, fileCbFunc)

Source from the content-addressed store, hash-verified

14 return null;
15 }
16 decompress(data, updateMsg, fileCbFunc) {
17 const compressed = this.isCompressed(data.slice(0, 10));
18 if (compressed === null) {
19 if (typeof fileCbFunc === "function") {
20 fileCbFunc("!!notCompressedData", data);
21 }
22 return new Promise(resolve => resolve({ "!!notCompressedData": data }));
23 }
24 return this.decompressFile(compressed, data, updateMsg, fileCbFunc);
25 }
26 getWorkerFile(method) {
27 return new Promise(async (resolve, reject) => {
28 let path, obj;

Callers 1

checkCompressionMethod · 0.80

Calls 2

isCompressedMethod · 0.95
decompressFileMethod · 0.95

Tested by

no test coverage detected