1
1
# Buffer
2
2
3
- Stability: 2 - Stable
3
+ > Stability: 2 - Stable
4
4
5
5
Prior to the introduction of [ ` TypedArray ` ] in ECMAScript 2015 (ES6), the
6
6
JavaScript language had no mechanism for reading or manipulating streams
@@ -300,7 +300,7 @@ It can be constructed in a variety of ways.
300
300
deprecated: v6.0.0
301
301
-->
302
302
303
- Stability: 0 - Deprecated: Use [`Buffer.from(array)`] instead.
303
+ > Stability: 0 - Deprecated: Use [ ` Buffer.from(array) ` ] instead.
304
304
305
305
* ` array ` {Array} An array of bytes to copy from
306
306
@@ -318,7 +318,7 @@ const buf = new Buffer([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
318
318
deprecated: v6.0.0
319
319
-->
320
320
321
- Stability: 0 - Deprecated: Use [`Buffer.from(buffer)`] instead.
321
+ > Stability: 0 - Deprecated: Use [ ` Buffer.from(buffer) ` ] instead.
322
322
323
323
* ` buffer ` {Buffer} An existing ` Buffer ` to copy data from
324
324
@@ -344,9 +344,9 @@ console.log(buf2.toString());
344
344
deprecated: v6.0.0
345
345
-->
346
346
347
- Stability: 0 - Deprecated: Use
348
- [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`]
349
- instead.
347
+ > Stability: 0 - Deprecated: Use
348
+ > [ ` Buffer.from(arrayBuffer[, byteOffset [, length]]) ` ] [ `Buffer.from(arrayBuffer)` ]
349
+ > instead.
350
350
351
351
* ` arrayBuffer ` {ArrayBuffer} The ` .buffer ` property of a [ ` TypedArray ` ] or
352
352
[ ` ArrayBuffer ` ]
@@ -387,8 +387,8 @@ console.log(buf);
387
387
deprecated: v6.0.0
388
388
-->
389
389
390
- Stability: 0 - Deprecated: Use [`Buffer.alloc()`] instead (also see
391
- [`Buffer.allocUnsafe()`]).
390
+ > Stability: 0 - Deprecated: Use [ ` Buffer.alloc() ` ] instead (also see
391
+ > [ ` Buffer.allocUnsafe() ` ] ).
392
392
393
393
* ` size ` {Integer} The desired length of the new ` Buffer `
394
394
@@ -420,8 +420,8 @@ console.log(buf);
420
420
deprecated: v6.0.0
421
421
-->
422
422
423
- Stability: 0 - Deprecated:
424
- Use [`Buffer.from(string[, encoding])`][`Buffer.from(string)`] instead.
423
+ > Stability: 0 - Deprecated:
424
+ > Use [ ` Buffer.from(string[, encoding]) ` ] [ `Buffer.from(string)` ] instead.
425
425
426
426
* ` string ` {String} String to encode
427
427
* ` encoding ` {String} The encoding of ` string ` . ** Default:** ` 'utf8' `
@@ -2309,7 +2309,7 @@ On 64-bit architectures, this value is `(2^31)-1` (~2GB).
2309
2309
deprecated: v6.0.0
2310
2310
-->
2311
2311
2312
- Stability: 0 - Deprecated: Use [`Buffer.allocUnsafeSlow()`] instead.
2312
+ > Stability: 0 - Deprecated: Use [ ` Buffer.allocUnsafeSlow() ` ] instead.
2313
2313
2314
2314
Returns an un-pooled ` Buffer ` .
2315
2315
@@ -2349,7 +2349,7 @@ has observed undue memory retention in their applications.
2349
2349
deprecated: v6.0.0
2350
2350
-->
2351
2351
2352
- Stability: 0 - Deprecated: Use [`Buffer.allocUnsafeSlow()`] instead.
2352
+ > Stability: 0 - Deprecated: Use [ ` Buffer.allocUnsafeSlow() ` ] instead.
2353
2353
2354
2354
* ` size ` {Integer} The desired length of the new ` SlowBuffer `
2355
2355
0 commit comments