Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bun.zhcndoc.com/llms.txt

Use this file to discover all available pages before exploring further.

Uint8Array 是一种 类型化数组 类,意味着它是查看底层 ArrayBuffer 中数据的一种机制。以下代码片段创建了一个 [DataView] 实例,作用于与 Uint8Array 相同的数据范围。
const arr: Uint8Array = ...
const dv = new DataView(arr.buffer, arr.byteOffset, arr.byteLength);

完整的二进制数据操作文档,请参见 文档 > API > 二进制数据