You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/api/buffer.markdown
+1-1
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ It can be constructed in a variety of ways.
64
64
65
65
Allocates a new buffer of `size` octets. Note, `size` must be no more than
66
66
[kMaxLength](smalloc.html#smalloc_smalloc_kmaxlength). Otherwise, a `RangeError`
67
-
will be thrown here.
67
+
will be thrown here. Unlike `ArrayBuffers`, the underlying memory for buffers is not initialized. So the contents of a newly created `Buffer` is unknown. Use `buf.fill(0)`to initialize a buffer to zeroes.
0 commit comments