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 6bc3bde

Browse filesBrowse files
Amery2010MylesBorins
authored andcommitted
doc: fix incorrect references in buffer docs
PR-URL: #6194 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
1 parent f69416c commit 6bc3bde
Copy full SHA for 6bc3bde

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.markdown‎

Copy file name to clipboardExpand all lines: doc/api/buffer.markdown
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ buf.readUInt8(1);
11141114
* Return: {Number}
11151115

11161116
Reads an unsigned 16-bit integer from the Buffer at the specified `offset` with
1117-
specified endian format (`readInt32BE()` returns big endian,
1118-
`readInt32LE()` returns little endian).
1117+
specified endian format (`readUInt16BE()` returns big endian,
1118+
`readUInt16LE()` returns little endian).
11191119

11201120
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
11211121
`offset` to be beyond the end of the Buffer.
@@ -1147,8 +1147,8 @@ buf.readUInt16LE(2);
11471147
* Return: {Number}
11481148

11491149
Reads an unsigned 32-bit integer from the Buffer at the specified `offset` with
1150-
specified endian format (`readInt32BE()` returns big endian,
1151-
`readInt32LE()` returns little endian).
1150+
specified endian format (`readUInt32BE()` returns big endian,
1151+
`readUInt32LE()` returns little endian).
11521152

11531153
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
11541154
`offset` to be beyond the end of the Buffer.

0 commit comments

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