| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 020c90e commit 6d3c2d6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - # Buffer | ||
| 1 | + # Buffer | ||
| 2 | 2 | ||
| 3 | 3 | > Stability: 2 - Stable | |
| 4 | 4 | ||
@@ -404,14 +404,14 @@ are unknown and *could contain sensitive data*. Use | |||
| 404 | 404 | Example: | |
| 405 | 405 | ||
| 406 | 406 | ```js | |
| 407 | - const buf = new Buffer(5); | ||
| 407 | + const buf = new Buffer(10); | ||
| 408 | 408 | ||
| 409 | - // Prints: (contents may vary): <Buffer 78 e0 82 02 01> | ||
| 409 | + // Prints: (contents may vary): <Buffer 48 21 4b 00 00 00 00 00 30 dd> | ||
| 410 | 410 | console.log(buf); | |
| 411 | 411 | ||
| 412 | 412 | buf.fill(0); | |
| 413 | 413 | ||
| 414 | - // Prints: <Buffer 00 00 00 00 00> | ||
| 414 | + // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00> | ||
| 415 | 415 | console.log(buf); | |
| 416 | 416 | ``` | |
| 417 | 417 | ||
@@ -523,14 +523,14 @@ initialized*. The contents of the newly created `Buffer` are unknown and | |||
| 523 | 523 | Example: | |
| 524 | 524 | ||
| 525 | 525 | ```js | |
| 526 | - const buf = Buffer.allocUnsafe(5); | ||
| 526 | + const buf = Buffer.allocUnsafe(10); | ||
| 527 | 527 | ||
| 528 | - // Prints: (contents may vary): <Buffer 78 e0 82 02 01> | ||
| 528 | + // Prints: (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32> | ||
| 529 | 529 | console.log(buf); | |
| 530 | 530 | ||
| 531 | 531 | buf.fill(0); | |
| 532 | 532 | ||
| 533 | - // Prints: <Buffer 00 00 00 00 00> | ||
| 533 | + // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00> | ||
| 534 | 534 | console.log(buf); | |
| 535 | 535 | ``` | |
| 536 | 536 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments