@@ -284,7 +284,7 @@ Additionally, the [`buf.values()`][], [`buf.keys()`][], and
284284The ` Buffer ` class is a global type for dealing with binary data directly.
285285It can be constructed in a variety of ways.
286286
287- ### Class Method : ` Buffer.alloc(size[, fill[, encoding]]) `
287+ ### Static method : ` Buffer.alloc(size[, fill[, encoding]]) `
288288<!-- YAML
289289added: v5.10.0
290290changes:
@@ -349,7 +349,7 @@ data that might not have been allocated for `Buffer`s.
349349
350350A ` TypeError ` will be thrown if ` size ` is not a number.
351351
352- ### Class Method : ` Buffer.allocUnsafe(size) `
352+ ### Static method : ` Buffer.allocUnsafe(size) `
353353<!-- YAML
354354added: v5.10.0
355355changes:
@@ -398,7 +398,7 @@ pool, while `Buffer.allocUnsafe(size).fill(fill)` *will* use the internal
398398difference is subtle but can be important when an application requires the
399399additional performance that [ ` Buffer.allocUnsafe() ` ] [ ] provides.
400400
401- ### Class Method : ` Buffer.allocUnsafeSlow(size) `
401+ ### Static method : ` Buffer.allocUnsafeSlow(size) `
402402<!-- YAML
403403added: v5.12.0
404404-->
@@ -446,7 +446,7 @@ socket.on('readable', () => {
446446
447447A ` TypeError ` will be thrown if ` size ` is not a number.
448448
449- ### Class Method : ` Buffer.byteLength(string[, encoding]) `
449+ ### Static method : ` Buffer.byteLength(string[, encoding]) `
450450<!-- YAML
451451added: v0.1.90
452452changes:
@@ -485,7 +485,7 @@ When `string` is a `Buffer`/[`DataView`][]/[`TypedArray`][]/[`ArrayBuffer`][]/
485485[ ` SharedArrayBuffer ` ] [ ] , the byte length as reported by ` .byteLength `
486486is returned.
487487
488- ### Class Method : ` Buffer.compare(buf1, buf2) `
488+ ### Static method : ` Buffer.compare(buf1, buf2) `
489489<!-- YAML
490490added: v0.11.13
491491changes:
@@ -513,7 +513,7 @@ console.log(arr.sort(Buffer.compare));
513513// (This result is equal to: [buf2, buf1].)
514514```
515515
516- ### Class Method : ` Buffer.concat(list[, totalLength]) `
516+ ### Static method : ` Buffer.concat(list[, totalLength]) `
517517<!-- YAML
518518added: v0.7.11
519519changes:
@@ -560,7 +560,7 @@ console.log(bufA.length);
560560// Prints: 42
561561```
562562
563- ### Class Method : ` Buffer.from(array) `
563+ ### Static method : ` Buffer.from(array) `
564564<!-- YAML
565565added: v5.10.0
566566-->
@@ -581,7 +581,7 @@ appropriate for `Buffer.from()` variants.
581581` Buffer.from(array) ` and [ ` Buffer.from(string) ` ] [ ] may also use the internal
582582` Buffer ` pool like [ ` Buffer.allocUnsafe() ` ] [ ] does.
583583
584- ### Class Method : ` Buffer.from(arrayBuffer[, byteOffset[, length]]) `
584+ ### Static method : ` Buffer.from(arrayBuffer[, byteOffset[, length]]) `
585585<!-- YAML
586586added: v5.10.0
587587-->
@@ -632,7 +632,7 @@ A `TypeError` will be thrown if `arrayBuffer` is not an [`ArrayBuffer`][] or a
632632[ ` SharedArrayBuffer ` ] [ ] or another type appropriate for ` Buffer.from() `
633633variants.
634634
635- ### Class Method : ` Buffer.from(buffer) `
635+ ### Static method : ` Buffer.from(buffer) `
636636<!-- YAML
637637added: v5.10.0
638638-->
@@ -657,7 +657,7 @@ console.log(buf2.toString());
657657A ` TypeError ` will be thrown if ` buffer ` is not a ` Buffer ` or another type
658658appropriate for ` Buffer.from() ` variants.
659659
660- ### Class Method : ` Buffer.from(object[, offsetOrEncoding[, length]]) `
660+ ### Static method : ` Buffer.from(object[, offsetOrEncoding[, length]]) `
661661<!-- YAML
662662added: v8.2.0
663663-->
@@ -691,7 +691,7 @@ const buf = Buffer.from(new Foo(), 'utf8');
691691A ` TypeError ` will be thrown if ` object ` does not have the mentioned methods or
692692is not of another type appropriate for ` Buffer.from() ` variants.
693693
694- ### Class Method : ` Buffer.from(string[, encoding]) `
694+ ### Static method : ` Buffer.from(string[, encoding]) `
695695<!-- YAML
696696added: v5.10.0
697697-->
@@ -717,7 +717,7 @@ console.log(buf1.toString('latin1'));
717717A ` TypeError ` will be thrown if ` string ` is not a string or another type
718718appropriate for ` Buffer.from() ` variants.
719719
720- ### Class Method : ` Buffer.isBuffer(obj) `
720+ ### Static method : ` Buffer.isBuffer(obj) `
721721<!-- YAML
722722added: v0.1.101
723723-->
@@ -727,7 +727,7 @@ added: v0.1.101
727727
728728Returns ` true ` if ` obj ` is a ` Buffer ` , ` false ` otherwise.
729729
730- ### Class Method : ` Buffer.isEncoding(encoding) `
730+ ### Static method : ` Buffer.isEncoding(encoding) `
731731<!-- YAML
732732added: v0.9.1
733733-->
@@ -3198,13 +3198,13 @@ introducing security vulnerabilities into an application.
31983198[ RFC 4648, Section 5 ] : https://tools.ietf.org/html/rfc4648#section-5
31993199[ WHATWG Encoding Standard ] : https://encoding.spec.whatwg.org/
32003200[ `ArrayBuffer` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
3201- [ `Buffer.alloc()` ] : #buffer_class_method_buffer_alloc_size_fill_encoding
3202- [ `Buffer.allocUnsafe()` ] : #buffer_class_method_buffer_allocunsafe_size
3203- [ `Buffer.allocUnsafeSlow()` ] : #buffer_class_method_buffer_allocunsafeslow_size
3204- [ `Buffer.from(array)` ] : #buffer_class_method_buffer_from_array
3205- [ `Buffer.from(arrayBuf)` ] : #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
3206- [ `Buffer.from(buffer)` ] : #buffer_class_method_buffer_from_buffer
3207- [ `Buffer.from(string)` ] : #buffer_class_method_buffer_from_string_encoding
3201+ [ `Buffer.alloc()` ] : #buffer_static_method_buffer_alloc_size_fill_encoding
3202+ [ `Buffer.allocUnsafe()` ] : #buffer_static_method_buffer_allocunsafe_size
3203+ [ `Buffer.allocUnsafeSlow()` ] : #buffer_static_method_buffer_allocunsafeslow_size
3204+ [ `Buffer.from(array)` ] : #buffer_static_method_buffer_from_array
3205+ [ `Buffer.from(arrayBuf)` ] : #buffer_static_method_buffer_from_arraybuffer_byteoffset_length
3206+ [ `Buffer.from(buffer)` ] : #buffer_static_method_buffer_from_buffer
3207+ [ `Buffer.from(string)` ] : #buffer_static_method_buffer_from_string_encoding
32083208[ `Buffer.poolSize` ] : #buffer_class_property_buffer_poolsize
32093209[ `DataView` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
32103210[ `ERR_INVALID_BUFFER_SIZE` ] : errors.html#ERR_INVALID_BUFFER_SIZE
0 commit comments