@@ -5340,6 +5340,28 @@ console.log(newBuf.toString('ascii'));
53405340Because the Euro (` € ` ) sign is not representable in US-ASCII, it is replaced
53415341with ` ? ` in the transcoded ` Buffer ` .
53425342
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+
53435365### Buffer constants
53445366
53455367<!-- YAML
@@ -5472,11 +5494,11 @@ added: v5.10.0
54725494
54735495Node.js can be started using the ` --zero-fill-buffers ` command-line option to
54745496cause 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.
54805502
54815503``` console
54825504$ node --zero-fill-buffers
0 commit comments