doc: fix links order in Buffer doc
Sort links in lexical order PR-URL: https://github.com/nodejs/node/pull/5076 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Roman Klauke <romaaan.git@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
e31bda81dd
commit
c714b2e21c
@ -75,8 +75,8 @@ The character encodings currently supported by Node.js include:
|
|||||||
Buffers are also `Uint8Array` TypedArray instances. However, there are subtle
|
Buffers are also `Uint8Array` TypedArray instances. However, there are subtle
|
||||||
incompatibilities with the TypedArray specification in ECMAScript 2015. For
|
incompatibilities with the TypedArray specification in ECMAScript 2015. For
|
||||||
instance, while `ArrayBuffer#slice()` creates a copy of the slice,
|
instance, while `ArrayBuffer#slice()` creates a copy of the slice,
|
||||||
the implementation of [`Buffer#slice()`][] creates a view over the existing
|
the implementation of [`Buffer#slice()`][`buf.slice()`] creates a view over the
|
||||||
Buffer without copying, making `Buffer#slice()` far more efficient.
|
existing Buffer without copying, making `Buffer#slice()` far more efficient.
|
||||||
|
|
||||||
It is also possible to create new TypedArray instances from a `Buffer` with the
|
It is also possible to create new TypedArray instances from a `Buffer` with the
|
||||||
following caveats:
|
following caveats:
|
||||||
@ -1351,17 +1351,16 @@ socket.on('readable', () => {
|
|||||||
Use of `SlowBuffer` should be used only as a last resort *after* a developer
|
Use of `SlowBuffer` should be used only as a last resort *after* a developer
|
||||||
has observed undue memory retention in their applications.
|
has observed undue memory retention in their applications.
|
||||||
|
|
||||||
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
|
|
||||||
[`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
|
|
||||||
[`Array#includes()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
|
[`Array#includes()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
|
||||||
|
[`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
|
||||||
|
[`buf.entries()`]: #buffer_buf_entries
|
||||||
[`buf.fill(0)`]: #buffer_buf_fill_value_offset_end
|
[`buf.fill(0)`]: #buffer_buf_fill_value_offset_end
|
||||||
|
[`buf.keys()`]: #buffer_buf_keys
|
||||||
[`buf.slice()`]: #buffer_buf_slice_start_end
|
[`buf.slice()`]: #buffer_buf_slice_start_end
|
||||||
|
[`buf.values()`]: #buffer_buf_values
|
||||||
[`buf1.compare(buf2)`]: #buffer_buf_compare_otherbuffer
|
[`buf1.compare(buf2)`]: #buffer_buf_compare_otherbuffer
|
||||||
[`Buffer#slice()`]: #buffer_buf_slice_start_end
|
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
|
||||||
[`RangeError`]: errors.html#errors_class_rangeerror
|
[`RangeError`]: errors.html#errors_class_rangeerror
|
||||||
[`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
|
[`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
|
||||||
[`util.inspect()`]: util.html#util_util_inspect_object_options
|
[`util.inspect()`]: util.html#util_util_inspect_object_options
|
||||||
[`buf.values()`]: #buffer_buf_values
|
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
|
||||||
[`buf.keys()`]: #buffer_buf_keys
|
|
||||||
[`buf.entries()`]: #buffer_buf_entries
|
|
||||||
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user