Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0103d9d

Browse filesBrowse files
mscdexcjihrig
authored andcommitted
doc: reorganize Buffer link references
This commit adds more links and separates internal doc links from external web links. PR-URL: #7784 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 17ae49a commit 0103d9d
Copy full SHA for 0103d9d

File tree

Expand file treeCollapse file tree

1 file changed

+24
-17
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+24
-17
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+24-17Lines changed: 24 additions & 17 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2204,29 +2204,36 @@ buf.fill(0);
22042204
console.log(buf);
22052205
```
22062206

2207-
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
2208-
[`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
2209-
[`Buffer#indexOf()`]: #buffer_buf_indexof_value_byteoffset_encoding
2210-
[`Array#includes()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
2207+
[`buf.compare()`]: #buffer_buf_compare_target_targetstart_targetend_sourcestart_sourceend
22112208
[`buf.entries()`]: #buffer_buf_entries
2212-
[`buf.fill(0)`]: #buffer_buf_fill_value_offset_end_encoding
2209+
[`buf.indexOf()`]: #buffer_buf_indexof_value_byteoffset_encoding
22132210
[`buf.fill()`]: #buffer_buf_fill_value_offset_end_encoding
22142211
[`buf.keys()`]: #buffer_buf_keys
2212+
[`buf.length`]: #buffer_buf_length
22152213
[`buf.slice()`]: #buffer_buf_slice_start_end
22162214
[`buf.values()`]: #buffer_buf_values
2217-
[`buf1.compare(buf2)`]: #buffer_buf_compare_target_targetstart_targetend_sourcestart_sourceend
2218-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
2215+
[`buffer.kMaxLength`]: #buffer_buffer_kmaxlength
2216+
[`Buffer.alloc()`]: #buffer_class_method_buffer_alloc_size_fill_encoding
2217+
[`Buffer.allocUnsafe()`]: #buffer_class_method_buffer_allocunsafe_size
2218+
[`Buffer.allocUnsafeSlow()`]: #buffer_class_method_buffer_allocunsafeslow_size
2219+
[`Buffer.from(array)`]: #buffer_class_method_buffer_from_array
2220+
[`Buffer.from(arrayBuffer)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
2221+
[`Buffer.from(buffer)`]: #buffer_class_method_buffer_from_buffer
2222+
[`Buffer.from(string)`]: #buffer_class_method_buffer_from_str_encoding
2223+
[`Buffer.poolSize`]: #buffer_class_property_buffer_poolsize
22192224
[`RangeError`]: errors.html#errors_class_rangeerror
2220-
[`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
22212225
[`util.inspect()`]: util.html#util_util_inspect_object_options
2222-
[RFC 4648, Section 5]: https://tools.ietf.org/html/rfc4648#section-5
2223-
[buffer_from_array]: #buffer_class_method_buffer_from_array
2224-
[buffer_from_buffer]: #buffer_class_method_buffer_from_buffer
2225-
[buffer_from_arraybuf]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
2226-
[buffer_from_string]: #buffer_class_method_buffer_from_str_encoding
2227-
[buffer_allocunsafe]: #buffer_class_method_buffer_allocunsafe_size
2228-
[buffer_allocunsafeslow]: #buffer_class_method_buffer_allocunsafeslow_size
2229-
[buffer_alloc]: #buffer_class_method_buffer_alloc_size_fill_encoding
2230-
[`TypedArray.from()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
2226+
2227+
[`ArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
2228+
[`ArrayBuffer#slice()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice
22312229
[`DataView`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
2230+
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
2231+
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
2232+
[RFC1345]: https://tools.ietf.org/html/rfc1345
2233+
[RFC4648, Section 5]: https://tools.ietf.org/html/rfc4648#section-5
2234+
[`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
22322235
[`TypedArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
2236+
[`TypedArray.from()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
2237+
[`Uint32Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array
2238+
[`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
2239+
[WHATWG spec]: https://encoding.spec.whatwg.org/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.