minor fixes
This commit is contained in:
parent
9fcffe1692
commit
15f7acfc2a
15 changed files with 17 additions and 17 deletions
|
@ -126,9 +126,9 @@ new TypedArray();
|
|||
|
||||
We can create a `TypedArray` directly, without mentioning `ArrayBuffer`. But a view cannot exist without an underlying `ArrayBuffer`, so gets created automatically in all these cases except the first one (when provided).
|
||||
|
||||
To access the `ArrayBuffer`, there are properties:
|
||||
- `arr.buffer` -- references the `ArrayBuffer`.
|
||||
- `arr.byteLength` -- the length of the `ArrayBuffer`.
|
||||
To access the underlying `ArrayBuffer`, there are following properties in `TypedArray`:
|
||||
- `buffer` -- references the `ArrayBuffer`.
|
||||
- `byteLength` -- the length of the `ArrayBuffer`.
|
||||
|
||||
So, we can always move from one view to another:
|
||||
```js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue