From 5c938a249a23e1f3e5fafcc0f30aea7b59611e9e Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Thu, 18 Jul 2024 19:43:24 +0800 Subject: [PATCH] Update arraybuffer.md --- docs/uts/buildin-object-api/arraybuffer.md | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/uts/buildin-object-api/arraybuffer.md b/docs/uts/buildin-object-api/arraybuffer.md index cb1495a1..9b3d91db 100644 --- a/docs/uts/buildin-object-api/arraybuffer.md +++ b/docs/uts/buildin-object-api/arraybuffer.md @@ -1,5 +1,28 @@ # ArrayBuffer +ArrayBuffer 对象用来表示通用的原始二进制数据缓冲区。 + +它是一个字节数组,通常在其他语言中称为“byte array”。你不能直接操作 ArrayBuffer 中的内容;而是要通过类型化数组对象 + +[Float32Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/float32array.html) + +[Float64Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/float64array.html) + +[Int8Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/int8array.html) + +[Int16Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/int16array.html) + +[Int32Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/int32array.html) + +[Uint8Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/uint8array.html) + +[Uint8ClampedArray](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/uint8clampedarray.html) + +[Uint16Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/uint16array.html) + +[Uint32Array](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/uint32array.html) + +或 [DataView](https://doc.dcloud.net.cn/uni-app-x/uts/buildin-object-api/dataview.html) 对象来操作,它们会将缓冲区中的数据表示为特定的格式,并通过这些格式来读写缓冲区的内容。 ## 构造函数 -- GitLab