@@ -75,8 +75,8 @@ The character encodings currently supported by Node.js include:
75
75
Buffers are also ` Uint8Array ` TypedArray instances. However, there are subtle
76
76
incompatibilities with the TypedArray specification in ECMAScript 2015. For
77
77
instance, while ` ArrayBuffer#slice() ` creates a copy of the slice,
78
- the implementation of [ ` Buffer#slice() ` ] [ ] creates a view over the existing
79
- Buffer without copying, making ` Buffer#slice() ` far more efficient.
78
+ the implementation of [ ` Buffer#slice() ` ] [ `buf.slice()` ] creates a view over the
79
+ existing Buffer without copying, making ` Buffer#slice() ` far more efficient.
80
80
81
81
It is also possible to create new TypedArray instances from a ` Buffer ` with the
82
82
following caveats:
@@ -1351,17 +1351,16 @@ socket.on('readable', () => {
1351
1351
Use of ` SlowBuffer ` should be used only as a last resort * after* a developer
1352
1352
has observed undue memory retention in their applications.
1353
1353
1354
- [ iterator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
1355
- [ `Array#indexOf()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
1356
1354
[ `Array#includes()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
1355
+ [ `Array#indexOf()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
1356
+ [ `buf.entries()` ] : #buffer_buf_entries
1357
1357
[ `buf.fill(0)` ] : #buffer_buf_fill_value_offset_end
1358
+ [ `buf.keys()` ] : #buffer_buf_keys
1358
1359
[ `buf.slice()` ] : #buffer_buf_slice_start_end
1360
+ [ `buf.values()` ] : #buffer_buf_values
1359
1361
[ `buf1.compare(buf2)` ] : #buffer_buf_compare_otherbuffer
1360
- [ `Buffer#slice ()` ] : #buffer_buf_slice_start_end
1362
+ [ `JSON.stringify ()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
1361
1363
[ `RangeError` ] : errors.html#errors_class_rangeerror
1362
1364
[ `String.prototype.length` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
1363
1365
[ `util.inspect()` ] : util.html#util_util_inspect_object_options
1364
- [ `buf.values()` ] : #buffer_buf_values
1365
- [ `buf.keys()` ] : #buffer_buf_keys
1366
- [ `buf.entries()` ] : #buffer_buf_entries
1367
- [ `JSON.stringify()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
1366
+ [ iterator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
0 commit comments