Skip to content
Permalink
Browse files

doc: add note about Buffer octets integer coercion

PR-URL: #27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
  • Loading branch information...
vsemozhetbyt authored and BethGriggs committed Mar 31, 2019
1 parent c3d573d commit eeee6360b91b5bcefc885e29ab7c66637822693d
Showing with 2 additions and 1 deletion.
  1. +2 −1 doc/api/buffer.md
@@ -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.

0 comments on commit eeee636

Please sign in to comment.
You can’t perform that action at this time.