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 cbd5026

Browse filesBrowse files
strugeeaddaleax
authored andcommitted
doc: note that buf.buffer's contents might differ
This bit me in a personal project since I had no reason to read the `buf.byteOffset` docs, so point readers there explicitly. PR-URL: #29651 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 5a6f836 commit cbd5026
Copy full SHA for cbd5026

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,9 @@ console.log(buf.toString('ascii'));
10251025
* {ArrayBuffer} The underlying `ArrayBuffer` object based on
10261026
which this `Buffer` object is created.
10271027

1028+
This `ArrayBuffer` is not guaranteed to correspond exactly to the original
1029+
`Buffer`. See the notes on `buf.byteOffset` for details.
1030+
10281031
```js
10291032
const arrayBuffer = new ArrayBuffer(16);
10301033
const buffer = Buffer.from(arrayBuffer);

0 commit comments

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