We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eddfd52 commit 03f9388Copy full SHA for 03f9388
doc/api/buffer.md
@@ -872,6 +872,10 @@ The index operator `[index]` can be used to get and set the octet at position
872
`index` in `buf`. The values refer to individual bytes, so the legal value
873
range is between `0x00` and `0xFF` (hex) or `0` and `255` (decimal).
874
875
+This operator is inherited from `Uint8Array`, so its behavior on out-of-bounds
876
+access is the same as `UInt8Array` - that is, getting returns `undefined` and
877
+setting does nothing.
878
+
879
Example: Copy an ASCII string into a `Buffer`, one byte at a time
880
881
```js
0 commit comments