We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
buf.fill()
1 parent 6b6c628 commit 12fe2d3Copy full SHA for 12fe2d3
doc/api/buffer.md
@@ -1235,7 +1235,9 @@ console.log(b.toString());
1235
// Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
1236
```
1237
1238
-`value` is coerced to a `uint32` value if it is not a string or integer.
+`value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
1239
+integer. If the resulting integer is greater than `255` (decimal), `buf` will be
1240
+filled with `0`.
1241
1242
If the final write of a `fill()` operation falls on a multi-byte character,
1243
then only the bytes of that character that fit into `buf` are written:
0 commit comments