mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: add note about Buffer octets integer coercion
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
3a35d8a79e
commit
f9ef9eb43c
1 file changed
+2
-1
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user