doc: add note about Buffer octets integer coercion · nodejs/node@eeee636 (original) (raw)

Original file line number Diff line number Diff line change
@@ -12,7 +12,8 @@ streams in TCP streams, file system operations, and other contexts.
12 12 With [`TypedArray`] now available, the `Buffer` class implements the
13 13 [`Uint8Array`] API in a manner that is more optimized and suitable for Node.js.
14 14
15 -Instances of the `Buffer` class are similar to arrays of integers but
15 +Instances of the `Buffer` class are similar to arrays of integers from `0` to
16 +`255` (other integers are coerced to this range by `& 255` operation) but
16 17 correspond to fixed-sized, raw memory allocations outside the V8 heap.
17 18 The size of the `Buffer` is established when it is created and cannot be
18 19 changed.