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

Function writeBinaryFile

packages/editor-runtime/src/FileSystem.ts:106–108  ·  view source on GitHub ↗

* 写入二进制文件 * @param path 文件路径 * @param data 二进制数据

(path: string, data: Uint8Array)

Source from the content-addressed store, hash-verified

104 * @param data 二进制数据
105 */
106 async writeBinaryFile(path: string, data: Uint8Array): Promise<void> {
107 await invoke('write_binary_file', { filePath: path, content: Array.from(data) });
108 }
109};
110
111/**

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected