Skip to content

Commit

Permalink
doc: add note about Buffer octets integer coercion
Browse files Browse the repository at this point in the history
PR-URL: #27030
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Signed-off-by: Beth Griggs <[email protected]>
  • Loading branch information
vsemozhetbyt authored and BethGriggs committed Apr 10, 2019
1 parent 3a35d8a commit f9ef9eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ streams in TCP streams, file system operations, and other contexts.
With [`TypedArray`] now available, the `Buffer` class implements the
[`Uint8Array`] API in a manner that is more optimized and suitable for Node.js.

Instances of the `Buffer` class are similar to arrays of integers but
Instances of the `Buffer` class are similar to arrays of integers from `0` to
`255` (other integers are coerced to this range by `& 255` operation) but
correspond to fixed-sized, raw memory allocations outside the V8 heap.
The size of the `Buffer` is established when it is created and cannot be
changed.
Expand Down

0 comments on commit f9ef9eb

Please sign in to comment.