| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3e58f81 commit 66f2c60
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -239,7 +239,7 @@ the characters. | |||
| 239 | 239 | changes: | |
| 240 | 240 | - version: v3.0.0 | |
| 241 | 241 | pr-url: https://github.com/nodejs/node/pull/2002 | |
| 242 | - description: The `Buffer`s class now inherits from `Uint8Array`. | ||
| 242 | + description: The `Buffer` class now inherits from `Uint8Array`. | ||
| 243 | 243 | --> | |
| 244 | 244 | ||
| 245 | 245 | `Buffer` instances are also JavaScript {Uint8Array} and {TypedArray} | |
@@ -260,7 +260,7 @@ In particular: | |||
| 260 | 260 | ||
| 261 | 261 | There are two ways to create new {TypedArray} instances from a `Buffer`: | |
| 262 | 262 | ||
| 263 | - * Passing a `Buffer` to a {TypedArray} constructor will copy the `Buffer`s | ||
| 263 | + * Passing a `Buffer` to a {TypedArray} constructor will copy the `Buffer`'s | ||
| 264 | 264 | contents, interpreted as an array of integers, and not as a byte sequence | |
| 265 | 265 | of the target type. | |
| 266 | 266 | ||
@@ -286,7 +286,7 @@ console.log(uint32array); | |||
| 286 | 286 | // Prints: Uint32Array(4) [ 1, 2, 3, 4 ] | |
| 287 | 287 | ``` | |
| 288 | 288 | ||
| 289 | - * Passing the `Buffer`s underlying {ArrayBuffer} will create a | ||
| 289 | + * Passing the `Buffer`'s underlying {ArrayBuffer} will create a | ||
| 290 | 290 | {TypedArray} that shares its memory with the `Buffer`. | |
| 291 | 291 | ||
| 292 | 292 | ```mjs | |
@@ -1584,7 +1584,7 @@ console.log(buffer.buffer === arrayBuffer); | |||
| 1584 | 1584 | ||
| 1585 | 1585 | ### `buf.byteOffset` | |
| 1586 | 1586 | ||
| 1587 | - * {integer} The `byteOffset` of the `Buffer`s underlying `ArrayBuffer` object. | ||
| 1587 | + * {integer} The `byteOffset` of the `Buffer`'s underlying `ArrayBuffer` object. | ||
| 1588 | 1588 | ||
| 1589 | 1589 | When setting `byteOffset` in `Buffer.from(ArrayBuffer, byteOffset, length)`, | |
| 1590 | 1590 | or sometimes when allocating a `Buffer` smaller than `Buffer.poolSize`, the | |
| Back | FazBrowse Home | New Git URL |
0 commit comments