MCPcopy Create free account
hub / github.com/esengine/esengine / decode

Method decode

packages/core/src/Utils/BinarySerializer.ts:100–103  ·  view source on GitHub ↗

* 将二进制数据解码为对象

(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

98 * 将二进制数据解码为对象
99 */
100 public static decode(bytes: Uint8Array): any {
101 const jsonString = this.utf8ToString(bytes);
102 return JSON.parse(jsonString);
103 }
104}

Callers 15

readStringWithLengthMethod · 0.45
getCustomStringMethod · 0.45
deserializeFromBinaryMethod · 0.45
getInfoMethod · 0.45
rapier_wasm2d.jsFile · 0.45
getStringFromWasm0Function · 0.45
handleRunInBrowserFunction · 0.45
handleRunOnDeviceFunction · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseGLBMethod · 0.45

Calls 2

utf8ToStringMethod · 0.95
parseMethod · 0.65

Tested by 1

deserializeMethod · 0.36