We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
buf.fill()
1 parent b8d780c commit 10bff7aCopy full SHA for 10bff7a
doc/api/buffer.md
@@ -1238,7 +1238,9 @@ console.log(b.toString());
1238
// Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
1239
```
1240
1241
-`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
1242
+integer. If the resulting integer is greater than `255` (decimal), `buf` will be
1243
+filled with `0`.
1244
1245
If the final write of a `fill()` operation falls on a multi-byte character,
1246
then only the bytes of that character that fit into `buf` are written:
0 commit comments