@@ -5340,28 +5340,6 @@ console.log(newBuf.toString('ascii'));
5340
5340
Because the Euro (` € ` ) sign is not representable in US-ASCII, it is replaced
5341
5341
with ` ? ` in the transcoded ` Buffer ` .
5342
5342
5343
- ### Class: ` SlowBuffer `
5344
-
5345
- <!-- YAML
5346
- deprecated: v6.0.0
5347
- -->
5348
-
5349
- > Stability: 0 - Deprecated: Use [ ` Buffer.allocUnsafeSlow() ` ] [ ] instead.
5350
-
5351
- See [ ` Buffer.allocUnsafeSlow() ` ] [ ] . This was never a class in the sense that
5352
- the constructor always returned a ` Buffer ` instance, rather than a ` SlowBuffer `
5353
- instance.
5354
-
5355
- #### ` new SlowBuffer(size) `
5356
-
5357
- <!-- YAML
5358
- deprecated: v6.0.0
5359
- -->
5360
-
5361
- * ` size ` {integer} The desired length of the new ` SlowBuffer ` .
5362
-
5363
- See [ ` Buffer.allocUnsafeSlow() ` ] [ ] .
5364
-
5365
5343
### Buffer constants
5366
5344
5367
5345
<!-- YAML
@@ -5494,11 +5472,11 @@ added: v5.10.0
5494
5472
5495
5473
Node.js can be started using the ` --zero-fill-buffers ` command-line option to
5496
5474
cause all newly-allocated ` Buffer ` instances to be zero-filled upon creation by
5497
- default. Without the option, buffers created with [ ` Buffer.allocUnsafe() ` ] [ ] ,
5498
- [ ` Buffer.allocUnsafeSlow() ` ] [ ] , and ` new SlowBuffer(size) ` are not zero-filled.
5499
- Use of this flag can have a measurable negative impact on performance. Use the
5500
- ` --zero-fill-buffers ` option only when necessary to enforce that newly allocated
5501
- ` Buffer ` instances cannot contain old data that is potentially sensitive.
5475
+ default. Without the option, buffers created with [ ` Buffer.allocUnsafe() ` ] [ ] and
5476
+ [ ` Buffer.allocUnsafeSlow() ` ] [ ] are not zero-filled. Use of this flag can have a
5477
+ measurable negative impact on performance. Use the ` --zero-fill-buffers ` option
5478
+ only when necessary to enforce that newly allocated ` Buffer ` instances cannot
5479
+ contain old data that is potentially sensitive.
5502
5480
5503
5481
``` console
5504
5482
$ node --zero-fill-buffers
0 commit comments