@@ -176,12 +176,12 @@ however, subtle incompatibilities between the `Buffer` API and the |
176 | 176 |
|
177 | 177 | In particular: |
178 | 178 |
|
179 | | -* While [`TypedArray#slice()`][] creates a copy of part of the `TypedArray`, |
180 | | - [`Buffer#slice()`][`buf.slice()`] creates a view over the existing `Buffer` |
| 179 | +* While [`TypedArray.prototype.slice()`][] creates a copy of part of the `TypedArray`, |
| 180 | + [`Buffer.prototype.slice()`][`buf.slice()`] creates a view over the existing `Buffer` |
181 | 181 | without copying. This behavior can be surprising, and only exists for legacy |
182 | | - compatibility. [`TypedArray#subarray()`][] can be used to achieve the behavior |
183 | | - of [`Buffer#slice()`][`buf.slice()`] on both `Buffer`s and other |
184 | | - `TypedArray`s. |
| 182 | + compatibility. [`TypedArray.prototype.subarray()`][] can be used to achieve |
| 183 | + the behavior of [`Buffer.prototype.slice()`][`buf.slice()`] on both `Buffer`s |
| 184 | + and other `TypedArray`s. |
185 | 185 | * [`buf.toString()`][] is incompatible with its `TypedArray` equivalent. |
186 | 186 | * A number of methods, e.g. [`buf.indexOf()`][], support additional arguments. |
187 | 187 |
|
@@ -1086,9 +1086,9 @@ added: v0.1.90 |
1086 | 1086 | Copies data from a region of `buf` to a region in `target`, even if the `target` |
1087 | 1087 | memory region overlaps with `buf`. |
1088 | 1088 |
|
1089 | | -[`TypedArray#set()`][] performs the same operation, and is available for all |
1090 | | -TypedArrays, including Node.js `Buffer`s, although it takes different |
1091 | | -function arguments. |
| 1089 | +[`TypedArray.prototype.set()`][] performs the same operation, and is available |
| 1090 | +for all TypedArrays, including Node.js `Buffer`s, although it takes |
| 1091 | +different function arguments. |
1092 | 1092 |
|
1093 | 1093 | ```js |
1094 | 1094 | // Create two `Buffer` instances. |
@@ -1349,7 +1349,7 @@ an integer between 0 and 255. |
1349 | 1349 |
|
1350 | 1350 | If `byteOffset` is not a number, it will be coerced to a number. If the result |
1351 | 1351 | of coercion is `NaN` or `0`, then the entire buffer will be searched. This |
1352 | | -behavior matches [`String#indexOf()`][]. |
| 1352 | +behavior matches [`String.prototype.indexOf()`][]. |
1353 | 1353 |
|
1354 | 1354 | ```js |
1355 | 1355 | const b = Buffer.from('abcdef'); |
@@ -1449,7 +1449,7 @@ an integer between 0 and 255. |
1449 | 1449 |
|
1450 | 1450 | If `byteOffset` is not a number, it will be coerced to a number. Any arguments |
1451 | 1451 | that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. |
1452 | | -This behavior matches [`String#lastIndexOf()`][]. |
| 1452 | +This behavior matches [`String.prototype.lastIndexOf()`][]. |
1453 | 1453 |
|
1454 | 1454 | ```js |
1455 | 1455 | const b = Buffer.from('abcdef'); |
@@ -2136,7 +2136,7 @@ offset and cropped by the `start` and `end` indices. |
2136 | 2136 | Specifying `end` greater than [`buf.length`][] will return the same result as |
2137 | 2137 | that of `end` equal to [`buf.length`][]. |
2138 | 2138 |
|
2139 | | -This method is inherited from [`TypedArray#subarray()`][]. |
| 2139 | +This method is inherited from [`TypedArray.prototype.subarray()`][]. |
2140 | 2140 |
|
2141 | 2141 | Modifying the new `Buffer` slice will modify the memory in the original `Buffer` |
2142 | 2142 | because the allocated memory of the two objects overlap. |
@@ -3574,13 +3574,13 @@ introducing security vulnerabilities into an application. |
3574 | 3574 | [`ERR_OUT_OF_RANGE`]: errors.md#ERR_OUT_OF_RANGE |
3575 | 3575 | [`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify |
3576 | 3576 | [`SharedArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer |
3577 | | -[`String#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf |
3578 | | -[`String#lastIndexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf |
| 3577 | +[`String.prototype.indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf |
| 3578 | +[`String.prototype.lastIndexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf |
3579 | 3579 | [`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length |
3580 | | -[`TypedArray#set()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set |
3581 | | -[`TypedArray#slice()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice |
3582 | | -[`TypedArray#subarray()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray |
3583 | 3580 | [`TypedArray.from()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from |
| 3581 | +[`TypedArray.prototype.set()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set |
| 3582 | +[`TypedArray.prototype.slice()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice |
| 3583 | +[`TypedArray.prototype.subarray()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray |
3584 | 3584 | [`TypedArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray |
3585 | 3585 | [`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array |
3586 | 3586 | [`buf.buffer`]: #buffer_buf_buffer |
|