@@ -359,9 +359,9 @@ changes:
359
359
360
360
* ` arrayBuffer ` {ArrayBuffer|SharedArrayBuffer} An [ ` ArrayBuffer ` ] ,
361
361
[ ` SharedArrayBuffer ` ] or the ` .buffer ` property of a [ ` TypedArray ` ] .
362
- * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 `
362
+ * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 ` .
363
363
* ` length ` {integer} Number of bytes to expose.
364
- ** Default:** ` arrayBuffer.length - byteOffset `
364
+ ** Default:** ` arrayBuffer.length - byteOffset ` .
365
365
366
366
This creates a view of the [ ` ArrayBuffer ` ] or [ ` SharedArrayBuffer ` ] without
367
367
copying the underlying memory. For example, when passed a reference to the
@@ -481,7 +481,7 @@ changes:
481
481
> Use [ ` Buffer.from(string[, encoding]) ` ] [ `Buffer.from(string)` ] instead.
482
482
483
483
* ` string ` {string} String to encode.
484
- * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' `
484
+ * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' ` .
485
485
486
486
Creates a new ` Buffer ` containing the given JavaScript string ` string ` . If
487
487
provided, the ` encoding ` parameter identifies the character encoding of ` string ` .
@@ -515,9 +515,9 @@ changes:
515
515
516
516
* ` size ` {integer} The desired length of the new ` Buffer ` .
517
517
* ` fill ` {string|Buffer|integer} A value to pre-fill the new ` Buffer ` with.
518
- ** Default:** ` 0 `
518
+ ** Default:** ` 0 ` .
519
519
* ` encoding ` {string} If ` fill ` is a string, this is its encoding.
520
- ** Default:** ` 'utf8' `
520
+ ** Default:** ` 'utf8' ` .
521
521
522
522
Allocates a new ` Buffer ` of ` size ` bytes. If ` fill ` is ` undefined ` , the
523
523
` Buffer ` will be * zero-filled* .
@@ -683,7 +683,7 @@ changes:
683
683
* ` string ` {string|Buffer|TypedArray|DataView|ArrayBuffer|SharedArrayBuffer} A
684
684
value to calculate the length of.
685
685
* ` encoding ` {string} If ` string ` is a string, this is its encoding.
686
- ** Default:** ` 'utf8' `
686
+ ** Default:** ` 'utf8' ` .
687
687
* Returns: {integer} The number of bytes contained within ` string ` .
688
688
689
689
Returns the actual byte length of a string. This is not the same as
@@ -810,9 +810,9 @@ added: v5.10.0
810
810
811
811
* ` arrayBuffer ` {ArrayBuffer|SharedArrayBuffer} An [ ` ArrayBuffer ` ] ,
812
812
[ ` SharedArrayBuffer ` ] , or the ` .buffer ` property of a [ ` TypedArray ` ] .
813
- * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 `
813
+ * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 ` .
814
814
* ` length ` {integer} Number of bytes to expose.
815
- ** Default:** ` arrayBuffer.length - byteOffset `
815
+ ** Default:** ` arrayBuffer.length - byteOffset ` .
816
816
817
817
This creates a view of the [ ` ArrayBuffer ` ] without copying the underlying
818
818
memory. For example, when passed a reference to the ` .buffer ` property of a
@@ -889,7 +889,7 @@ added: v5.10.0
889
889
-->
890
890
891
891
* ` string ` {string} A string to encode.
892
- * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' `
892
+ * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' ` .
893
893
894
894
Creates a new ` Buffer ` containing the given JavaScript string ` string ` . If
895
895
provided, the ` encoding ` parameter identifies the character encoding of ` string ` .
@@ -1037,13 +1037,13 @@ changes:
1037
1037
1038
1038
* ` target ` {Buffer|Uint8Array} A ` Buffer ` or [ ` Uint8Array ` ] to compare to.
1039
1039
* ` targetStart ` {integer} The offset within ` target ` at which to begin
1040
- comparison. ** Default:** ` 0 `
1040
+ comparison. ** Default:** ` 0 ` .
1041
1041
* ` targetEnd ` {integer} The offset with ` target ` at which to end comparison
1042
- (not inclusive). ** Default:** ` target.length `
1042
+ (not inclusive). ** Default:** ` target.length ` .
1043
1043
* ` sourceStart ` {integer} The offset within ` buf ` at which to begin comparison.
1044
- ** Default:** ` 0 `
1044
+ ** Default:** ` 0 ` .
1045
1045
* ` sourceEnd ` {integer} The offset within ` buf ` at which to end comparison
1046
- (not inclusive). ** Default:** [ ` buf.length ` ]
1046
+ (not inclusive). ** Default:** [ ` buf.length ` ] .
1047
1047
* Returns: {integer}
1048
1048
1049
1049
Compares ` buf ` with ` target ` and returns a number indicating whether ` buf `
@@ -1111,11 +1111,11 @@ added: v0.1.90
1111
1111
1112
1112
* ` target ` {Buffer|Uint8Array} A ` Buffer ` or [ ` Uint8Array ` ] to copy into.
1113
1113
* ` targetStart ` {integer} The offset within ` target ` at which to begin
1114
- copying to. ** Default:** ` 0 `
1114
+ copying to. ** Default:** ` 0 ` .
1115
1115
* ` sourceStart ` {integer} The offset within ` buf ` at which to begin copying from.
1116
- ** Default:** ` 0 `
1116
+ ** Default:** ` 0 ` .
1117
1117
* ` sourceEnd ` {integer} The offset within ` buf ` at which to stop copying (not
1118
- inclusive). ** Default:** [ ` buf.length ` ]
1118
+ inclusive). ** Default:** [ ` buf.length ` ] .
1119
1119
* Returns: {integer} The number of bytes copied.
1120
1120
1121
1121
Copies data from a region of ` buf ` to a region in ` target ` even if the ` target `
@@ -1222,10 +1222,10 @@ changes:
1222
1222
-->
1223
1223
1224
1224
* ` value ` {string|Buffer|integer} The value to fill ` buf ` with.
1225
- * ` offset ` {integer} Number of bytes to skip before starting to fill ` buf ` . ** Default:** ` 0 `
1226
- * ` end ` {integer} Where to stop filling ` buf ` (not inclusive). ** Default:** [ ` buf.length ` ]
1225
+ * ` offset ` {integer} Number of bytes to skip before starting to fill ` buf ` . ** Default:** ` 0 ` .
1226
+ * ` end ` {integer} Where to stop filling ` buf ` (not inclusive). ** Default:** [ ` buf.length ` ] .
1227
1227
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1228
- ** Default:** ` 'utf8' `
1228
+ ** Default:** ` 'utf8' ` .
1229
1229
* Returns: {Buffer} A reference to ` buf ` .
1230
1230
1231
1231
Fills ` buf ` with the specified ` value ` . If the ` offset ` and ` end ` are not given,
@@ -1276,9 +1276,9 @@ added: v5.3.0
1276
1276
-->
1277
1277
1278
1278
* ` value ` {string|Buffer|integer} What to search for.
1279
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 `
1279
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1280
1280
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1281
- ** Default:** ` 'utf8' `
1281
+ ** Default:** ` 'utf8' ` .
1282
1282
* Returns: {boolean} ` true ` if ` value ` was found in ` buf ` , ` false ` otherwise.
1283
1283
1284
1284
Equivalent to [ ` buf.indexOf() !== -1 ` ] [ `buf.indexOf()` ] .
@@ -1918,9 +1918,9 @@ changes:
1918
1918
calculations with them.
1919
1919
-->
1920
1920
1921
- * ` start ` {integer} Where the new ` Buffer ` will start. ** Default:** ` 0 `
1921
+ * ` start ` {integer} Where the new ` Buffer ` will start. ** Default:** ` 0 ` .
1922
1922
* ` end ` {integer} Where the new ` Buffer ` will end (not inclusive).
1923
- ** Default:** [ ` buf.length ` ]
1923
+ ** Default:** [ ` buf.length ` ] .
1924
1924
* Returns: {Buffer}
1925
1925
1926
1926
Returns a new ` Buffer ` that references the same memory as the original, but
@@ -2099,10 +2099,10 @@ console.log(copy);
2099
2099
added: v0.1.90
2100
2100
-->
2101
2101
2102
- * ` encoding ` {string} The character encoding to decode to. ** Default:** ` 'utf8' `
2103
- * ` start ` {integer} The byte offset to start decoding at. ** Default:** ` 0 `
2102
+ * ` encoding ` {string} The character encoding to decode to. ** Default:** ` 'utf8' ` .
2103
+ * ` start ` {integer} The byte offset to start decoding at. ** Default:** ` 0 ` .
2104
2104
* ` end ` {integer} The byte offset to stop decoding at (not inclusive).
2105
- ** Default:** [ ` buf.length ` ]
2105
+ ** Default:** [ ` buf.length ` ] .
2106
2106
* Returns: {string}
2107
2107
2108
2108
Decodes ` buf ` to a string according to the specified character encoding in
@@ -2183,9 +2183,9 @@ added: v0.1.90
2183
2183
-->
2184
2184
2185
2185
* ` string ` {string} String to be written to ` buf ` .
2186
- * ` offset ` {integer} Number of bytes to skip before starting to write ` string ` . ** Default:** ` 0 `
2187
- * ` length ` {integer} Number of bytes to write. ** Default:** ` buf.length - offset `
2188
- * ` encoding ` {string} The character encoding of ` string ` . ** Default:** ` 'utf8' `
2186
+ * ` offset ` {integer} Number of bytes to skip before starting to write ` string ` . ** Default:** ` 0 ` .
2187
+ * ` length ` {integer} Number of bytes to write. ** Default:** ` buf.length - offset ` .
2188
+ * ` encoding ` {string} The character encoding of ` string ` . ** Default:** ` 'utf8' ` .
2189
2189
* Returns: {integer} Number of bytes written.
2190
2190
2191
2191
Writes ` string ` to ` buf ` at ` offset ` according to the character encoding in ` encoding ` .
@@ -2520,7 +2520,7 @@ added: v0.5.5
2520
2520
* ` offset ` {integer} Number of bytes to skip before starting to write. Must satisfy: ` 0 <= offset <= buf.length - byteLength ` .
2521
2521
* ` byteLength ` {integer} Number of bytes to write. Must satisfy: ` 0 < byteLength <= 6 ` .
2522
2522
* ` noAssert ` {boolean} Skip ` value ` , ` offset ` , and ` byteLength ` validation?
2523
- ** Default:** ` false `
2523
+ ** Default:** ` false ` .
2524
2524
* Returns: {integer} ` offset ` plus the number of bytes written.
2525
2525
2526
2526
Writes ` byteLength ` bytes of ` value ` to ` buf ` at the specified ` offset ` .
0 commit comments