Browse Source

doc: deprecate buffer's parent property

`buffer.parent` property is actually an alias of `buffer.buffer`
property. This patch actually doc-deprecates it and points the users to
the `buffer.buffer` property.

PR-URL: https://github.com/nodejs/node/pull/8332
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
v6
Sakthipriyan Vairamani (thefourtheye) 8 years ago
parent
commit
d708700c68
No known key found for this signature in database GPG Key ID: C71F2437E9591758
  1. 7
      doc/api/buffer.md

7
doc/api/buffer.md

@ -1329,6 +1329,12 @@ buf = buf.slice(0, 5);
console.log(buf.length);
```
### buf.parent
> Stability: 0 - Deprecated: Use [`buf.buffer`] instead.
The `buf.parent` property is a deprecated alias for `buf.buffer`.
### buf.readDoubleBE(offset[, noAssert])
### buf.readDoubleLE(offset[, noAssert])
<!-- YAML
@ -2429,6 +2435,7 @@ console.log(buf);
```
[`buf.compare()`]: #buffer_buf_compare_target_targetstart_targetend_sourcestart_sourceend
[`buf.buffer`]: #buffer_buf_buffer
[`buf.entries()`]: #buffer_buf_entries
[`buf.indexOf()`]: #buffer_buf_indexof_value_byteoffset_encoding
[`buf.fill()`]: #buffer_buf_fill_value_offset_end_encoding

Loading…
Cancel
Save