MCPcopy Create free account
hub / github.com/melonjs/melonJS / setInflateFunction

Function setInflateFunction

packages/melonjs/src/utils/decode.ts:13–17  ·  view source on GitHub ↗
(
	fn: ((data: string, format: string) => Uint32Array) | undefined,
)

Source from the content-addressed store, hash-verified

11 * @param fn - inflate function
12 */
13export function setInflateFunction(
14 fn: ((data: string, format: string) => Uint32Array) | undefined,
15) {
16 inflateFunction = fn;
17}
18
19/**
20 * decompress and decode zlib/gzip data

Callers 1

tmxutils.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected