Skip to content

⬅️ Back to Table of Contents

📄 zstddec.module.js

📊 Analysis Summary

Metric Count
🔧 Functions 15
🧱 Classes 1
📊 Variables & Constants 6

📚 Table of Contents

🛠️ File Location:

📂 examples/jsm/libs/zstddec.module.js

Variables & Constants

Name Type Kind Value Exported
A any let/var *not shown*
I any let/var *not shown*
B any let/var *not shown*
g { env: { emscripten_notify_memory_gro... let/var {env:{emscripten_notify_memory_growth:function(A){B=new Uint8Array(I.exports....
Q any let/var A.byteLength
C "AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/... let/var "AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9g...

Functions

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

emscripten_notify_memory_growth(A: any): void

Parameters:

  • A any

Returns: void

Code
function(A){B=new Uint8Array(I.exports.memory.buffer)}

Q.init(): any

Returns: any

Calls:

  • fetch("data:application/wasm;base64,"+C).then(A=>A.arrayBuffer()).then(A=>WebAssembly.instantiate(A,g)).then
  • WebAssembly.instantiate(Buffer.from(C,"base64"),g).then
Code
init(){return A||(A="undefined"!=typeof fetch?fetch("data:application/wasm;base64,"+C).then(A=>A.arrayBuffer()).then(A=>WebAssembly.instantiate(A,g)).then(this._init):WebAssembly.instantiate(Buffer.from(C,"base64"),g).then(this._init),A)}

Q._init(A: any): void

Parameters:

  • A any

Returns: void

Calls:

  • g.env.emscripten_notify_memory_growth
Code
_init(A){I=A.instance,g.env.emscripten_notify_memory_growth(0)}

Q.decode(A: any, g: number): any

Parameters:

  • A any
  • g number

Returns: any

Calls:

  • I.exports.malloc
  • B.set
  • Number
  • I.exports.ZSTD_findDecompressedSize
  • I.exports.ZSTD_decompress
  • B.slice
  • I.exports.free
Code
decode(A,g=0){if(!I)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Q=A.byteLength,C=I.exports.malloc(Q);B.set(A,C),g=g||Number(I.exports.ZSTD_findDecompressedSize(C,Q));const E=I.exports.malloc(g),i=I.exports.ZSTD_decompress(E,g,C,Q),D=B.slice(E,E+i);return I.exports.free(C),I.exports.free(E),D}

Classes

Q

Class Code
class Q{init(){return A||(A="undefined"!=typeof fetch?fetch("data:application/wasm;base64,"+C).then(A=>A.arrayBuffer()).then(A=>WebAssembly.instantiate(A,g)).then(this._init):WebAssembly.instantiate(Buffer.from(C,"base64"),g).then(this._init),A)}_init(A){I=A.instance,g.env.emscripten_notify_memory_growth(0)}decode(A,g=0){if(!I)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Q=A.byteLength,C=I.exports.malloc(Q);B.set(A,C),g=g||Number(I.exports.ZSTD_findDecompressedSize(C,Q));const E=I.exports.malloc(g),i=I.exports.ZSTD_decompress(E,g,C,Q),D=B.slice(E,E+i);return I.exports.free(C),I.exports.free(E),D}}

Methods

init(): any
Code
init(){return A||(A="undefined"!=typeof fetch?fetch("data:application/wasm;base64,"+C).then(A=>A.arrayBuffer()).then(A=>WebAssembly.instantiate(A,g)).then(this._init):WebAssembly.instantiate(Buffer.from(C,"base64"),g).then(this._init),A)}
_init(A: any): void
Code
_init(A){I=A.instance,g.env.emscripten_notify_memory_growth(0)}
decode(A: any, g: number): any
Code
decode(A,g=0){if(!I)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Q=A.byteLength,C=I.exports.malloc(Q);B.set(A,C),g=g||Number(I.exports.ZSTD_findDecompressedSize(C,Q));const E=I.exports.malloc(g),i=I.exports.ZSTD_decompress(E,g,C,Q),D=B.slice(E,E+i);return I.exports.free(C),I.exports.free(E),D}