mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
Update arraybuffer.md
DataView add setBigInt64 getBigInt64 setBigUint64 getBigUint64
This commit is contained in:
parent
6d244f60ba
commit
7fc248d6f3
@ -754,6 +754,8 @@ const dv = new DataView(buffer);
|
||||
- **`getUint16`**:读取 2 个字节,返回一个无符号的 16 位整数。
|
||||
- **`getInt32`**:读取 4 个字节,返回一个 32 位整数。
|
||||
- **`getUint32`**:读取 4 个字节,返回一个无符号的 32 位整数。
|
||||
- **`getBigInt64`**:读取 8 个字节,返回一个 64 位整数。
|
||||
- **`getBigUint64`**:读取 8 个字节,返回一个无符号的 64 位整数。
|
||||
- **`getFloat32`**:读取 4 个字节,返回一个 32 位浮点数。
|
||||
- **`getFloat64`**:读取 8 个字节,返回一个 64 位浮点数。
|
||||
|
||||
@ -796,6 +798,8 @@ DataView 视图提供 8 个方法写入内存。
|
||||
- **`setUint16`**:写入 2 个字节的 16 位无符号整数。
|
||||
- **`setInt32`**:写入 4 个字节的 32 位整数。
|
||||
- **`setUint32`**:写入 4 个字节的 32 位无符号整数。
|
||||
- **`setBigInt64`**:写入 8 个字节的 64 位整数。
|
||||
- **`setBigUint64`**:写入 8 个字节的 64 位无符号整数。
|
||||
- **`setFloat32`**:写入 4 个字节的 32 位浮点数。
|
||||
- **`setFloat64`**:写入 8 个字节的 64 位浮点数。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user