@@ -5340,6 +5340,28 @@ 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
+
5343
5365
### Buffer constants
5344
5366
5345
5367
<!-- YAML
@@ -5472,11 +5494,11 @@ added: v5.10.0
5472
5494
5473
5495
Node.js can be started using the ` --zero-fill-buffers ` command-line option to
5474
5496
cause all newly-allocated ` Buffer ` instances to be zero-filled upon creation by
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.
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.
5480
5502
5481
5503
``` console
5482
5504
$ node --zero-fill-buffers
0 commit comments