读取文件的内容类型,支持 Uint8Array<ArrayBuffer> string。 小游戏不支持 Blob、File 和 ReadableStream。
Uint8Array<ArrayBuffer>
string
Blob
File
ReadableStream
1.0.0
import type { ReadFileContent } from 'minigame-std';// ReadFileContent 可以是 Uint8Array<ArrayBuffer> 或 stringconst content: ReadFileContent = new Uint8Array(8); Copy
import type { ReadFileContent } from 'minigame-std';// ReadFileContent 可以是 Uint8Array<ArrayBuffer> 或 stringconst content: ReadFileContent = new Uint8Array(8);
读取文件的内容类型,支持
Uint8Array<ArrayBuffer>string。 小游戏不支持Blob、File和ReadableStream。