@@ -345,9 +345,9 @@ changes:
345
345
346
346
* ` arrayBuffer ` {ArrayBuffer|SharedArrayBuffer} An [ ` ArrayBuffer ` ] ,
347
347
[ ` SharedArrayBuffer ` ] or the ` .buffer ` property of a [ ` TypedArray ` ] .
348
- * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 `
348
+ * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 ` .
349
349
* ` length ` {integer} Number of bytes to expose.
350
- ** Default:** ` arrayBuffer.length - byteOffset `
350
+ ** Default:** ` arrayBuffer.length - byteOffset ` .
351
351
352
352
This creates a view of the [ ` ArrayBuffer ` ] or [ ` SharedArrayBuffer ` ] without
353
353
copying the underlying memory. For example, when passed a reference to the
@@ -459,7 +459,7 @@ changes:
459
459
> Use [ ` Buffer.from(string[, encoding]) ` ] [ `Buffer.from(string)` ] instead.
460
460
461
461
* ` string ` {string} String to encode.
462
- * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' `
462
+ * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' ` .
463
463
464
464
Creates a new ` Buffer ` containing ` string ` . The ` encoding ` parameter identifies
465
465
the character encoding of ` string ` .
@@ -488,9 +488,9 @@ changes:
488
488
489
489
* ` size ` {integer} The desired length of the new ` Buffer ` .
490
490
* ` fill ` {string|Buffer|integer} A value to pre-fill the new ` Buffer ` with.
491
- ** Default:** ` 0 `
491
+ ** Default:** ` 0 ` .
492
492
* ` encoding ` {string} If ` fill ` is a string, this is its encoding.
493
- ** Default:** ` 'utf8' `
493
+ ** Default:** ` 'utf8' ` .
494
494
495
495
Allocates a new ` Buffer ` of ` size ` bytes. If ` fill ` is ` undefined ` , the
496
496
` Buffer ` will be * zero-filled* .
@@ -646,7 +646,7 @@ changes:
646
646
* ` string ` {string|Buffer|TypedArray|DataView|ArrayBuffer|SharedArrayBuffer} A
647
647
value to calculate the length of.
648
648
* ` encoding ` {string} If ` string ` is a string, this is its encoding.
649
- ** Default:** ` 'utf8' `
649
+ ** Default:** ` 'utf8' ` .
650
650
* Returns: {integer} The number of bytes contained within ` string ` .
651
651
652
652
Returns the actual byte length of a string. This is not the same as
@@ -766,9 +766,9 @@ added: v5.10.0
766
766
767
767
* ` arrayBuffer ` {ArrayBuffer|SharedArrayBuffer} An [ ` ArrayBuffer ` ] ,
768
768
[ ` SharedArrayBuffer ` ] , or the ` .buffer ` property of a [ ` TypedArray ` ] .
769
- * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 `
769
+ * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 ` .
770
770
* ` length ` {integer} Number of bytes to expose.
771
- ** Default:** ` arrayBuffer.length - byteOffset `
771
+ ** Default:** ` arrayBuffer.length - byteOffset ` .
772
772
773
773
This creates a view of the [ ` ArrayBuffer ` ] without copying the underlying
774
774
memory. For example, when passed a reference to the ` .buffer ` property of a
@@ -837,7 +837,7 @@ added: v5.10.0
837
837
-->
838
838
839
839
* ` string ` {string} A string to encode.
840
- * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' `
840
+ * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' ` .
841
841
842
842
Creates a new ` Buffer ` containing ` string ` . The ` encoding ` parameter identifies
843
843
the character encoding of ` string ` .
@@ -976,13 +976,13 @@ changes:
976
976
977
977
* ` target ` {Buffer|Uint8Array} A ` Buffer ` or [ ` Uint8Array ` ] to compare to.
978
978
* ` targetStart ` {integer} The offset within ` target ` at which to begin
979
- comparison. ** Default:** ` 0 `
979
+ comparison. ** Default:** ` 0 ` .
980
980
* ` targetEnd ` {integer} The offset with ` target ` at which to end comparison
981
- (not inclusive). ** Default:** ` target.length `
981
+ (not inclusive). ** Default:** ` target.length ` .
982
982
* ` sourceStart ` {integer} The offset within ` buf ` at which to begin comparison.
983
- ** Default:** ` 0 `
983
+ ** Default:** ` 0 ` .
984
984
* ` sourceEnd ` {integer} The offset within ` buf ` at which to end comparison
985
- (not inclusive). ** Default:** [ ` buf.length ` ]
985
+ (not inclusive). ** Default:** [ ` buf.length ` ] .
986
986
* Returns: {integer}
987
987
988
988
Compares ` buf ` with ` target ` and returns a number indicating whether ` buf `
@@ -1039,11 +1039,11 @@ added: v0.1.90
1039
1039
1040
1040
* ` target ` {Buffer|Uint8Array} A ` Buffer ` or [ ` Uint8Array ` ] to copy into.
1041
1041
* ` targetStart ` {integer} The offset within ` target ` at which to begin
1042
- copying to. ** Default:** ` 0 `
1042
+ copying to. ** Default:** ` 0 ` .
1043
1043
* ` sourceStart ` {integer} The offset within ` buf ` at which to begin copying from.
1044
- ** Default:** ` 0 `
1044
+ ** Default:** ` 0 ` .
1045
1045
* ` sourceEnd ` {integer} The offset within ` buf ` at which to stop copying (not
1046
- inclusive). ** Default:** [ ` buf.length ` ]
1046
+ inclusive). ** Default:** [ ` buf.length ` ] .
1047
1047
* Returns: {integer} The number of bytes copied.
1048
1048
1049
1049
Copies data from a region of ` buf ` to a region in ` target ` even if the ` target `
@@ -1146,10 +1146,10 @@ changes:
1146
1146
-->
1147
1147
1148
1148
* ` value ` {string|Buffer|integer} The value to fill ` buf ` with.
1149
- * ` offset ` {integer} Number of bytes to skip before starting to fill ` buf ` . ** Default:** ` 0 `
1150
- * ` end ` {integer} Where to stop filling ` buf ` (not inclusive). ** Default:** [ ` buf.length ` ]
1149
+ * ` offset ` {integer} Number of bytes to skip before starting to fill ` buf ` . ** Default:** ` 0 ` .
1150
+ * ` end ` {integer} Where to stop filling ` buf ` (not inclusive). ** Default:** [ ` buf.length ` ] .
1151
1151
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1152
- ** Default:** ` 'utf8' `
1152
+ ** Default:** ` 'utf8' ` .
1153
1153
* Returns: {Buffer} A reference to ` buf ` .
1154
1154
1155
1155
Fills ` buf ` with the specified ` value ` . If the ` offset ` and ` end ` are not given,
@@ -1197,9 +1197,9 @@ added: v5.3.0
1197
1197
-->
1198
1198
1199
1199
* ` value ` {string|Buffer|integer} What to search for.
1200
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 `
1200
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1201
1201
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1202
- ** Default:** ` 'utf8' `
1202
+ ** Default:** ` 'utf8' ` .
1203
1203
* Returns: {boolean} ` true ` if ` value ` was found in ` buf ` , ` false ` otherwise.
1204
1204
1205
1205
Equivalent to [ ` buf.indexOf() !== -1 ` ] [ `buf.indexOf()` ] .
@@ -1237,9 +1237,9 @@ changes:
1237
1237
-->
1238
1238
1239
1239
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1240
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 `
1240
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1241
1241
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1242
- ** Default:** ` 'utf8' `
1242
+ ** Default:** ` 'utf8' ` .
1243
1243
* Returns: {integer} The index of the first occurrence of ` value ` in ` buf ` or ` -1 `
1244
1244
if ` buf ` does not contain ` value ` .
1245
1245
@@ -1339,9 +1339,9 @@ changes:
1339
1339
1340
1340
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1341
1341
* ` byteOffset ` {integer} Where to begin searching in ` buf ` .
1342
- ** Default:** [ ` buf.length ` ] ` - 1 `
1342
+ ** Default:** [ ` buf.length ` ] ` - 1 ` .
1343
1343
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1344
- ** Default:** ` 'utf8' `
1344
+ ** Default:** ` 'utf8' ` .
1345
1345
* Returns: {integer} The index of the last occurrence of ` value ` in ` buf ` or ` -1 `
1346
1346
if ` buf ` does not contain ` value ` .
1347
1347
@@ -1761,9 +1761,9 @@ changes:
1761
1761
calculations with them.
1762
1762
-->
1763
1763
1764
- * ` start ` {integer} Where the new ` Buffer ` will start. ** Default:** ` 0 `
1764
+ * ` start ` {integer} Where the new ` Buffer ` will start. ** Default:** ` 0 ` .
1765
1765
* ` end ` {integer} Where the new ` Buffer ` will end (not inclusive).
1766
- ** Default:** [ ` buf.length ` ]
1766
+ ** Default:** [ ` buf.length ` ] .
1767
1767
* Returns: {Buffer}
1768
1768
1769
1769
Returns a new ` Buffer ` that references the same memory as the original, but
@@ -1932,10 +1932,10 @@ console.log(copy);
1932
1932
added: v0.1.90
1933
1933
-->
1934
1934
1935
- * ` encoding ` {string} The character encoding to decode to. ** Default:** ` 'utf8' `
1936
- * ` start ` {integer} The byte offset to start decoding at. ** Default:** ` 0 `
1935
+ * ` encoding ` {string} The character encoding to decode to. ** Default:** ` 'utf8' ` .
1936
+ * ` start ` {integer} The byte offset to start decoding at. ** Default:** ` 0 ` .
1937
1937
* ` end ` {integer} The byte offset to stop decoding at (not inclusive).
1938
- ** Default:** [ ` buf.length ` ]
1938
+ ** Default:** [ ` buf.length ` ] .
1939
1939
* Returns: {string}
1940
1940
1941
1941
Decodes ` buf ` to a string according to the specified character encoding in
@@ -2009,9 +2009,9 @@ added: v0.1.90
2009
2009
-->
2010
2010
2011
2011
* ` string ` {string} String to be written to ` buf ` .
2012
- * ` offset ` {integer} Number of bytes to skip before starting to write ` string ` . ** Default:** ` 0 `
2013
- * ` length ` {integer} Number of bytes to write. ** Default:** ` buf.length - offset `
2014
- * ` encoding ` {string} The character encoding of ` string ` . ** Default:** ` 'utf8' `
2012
+ * ` offset ` {integer} Number of bytes to skip before starting to write ` string ` . ** Default:** ` 0 ` .
2013
+ * ` length ` {integer} Number of bytes to write. ** Default:** ` buf.length - offset ` .
2014
+ * ` encoding ` {string} The character encoding of ` string ` . ** Default:** ` 'utf8' ` .
2015
2015
* Returns: {integer} Number of bytes written.
2016
2016
2017
2017
Writes ` string ` to ` buf ` at ` offset ` according to the character encoding in ` encoding ` .
@@ -2326,7 +2326,7 @@ added: v0.5.5
2326
2326
* ` offset ` {integer} Number of bytes to skip before starting to write. Must satisfy: ` 0 <= offset <= buf.length - byteLength ` .
2327
2327
* ` byteLength ` {integer} Number of bytes to write. Must satisfy: ` 0 < byteLength <= 6 ` .
2328
2328
* ` noAssert ` {boolean} Skip ` value ` , ` offset ` , and ` byteLength ` validation?
2329
- ** Default:** ` false `
2329
+ ** Default:** ` false ` .
2330
2330
* Returns: {integer} ` offset ` plus the number of bytes written.
2331
2331
2332
2332
Writes ` byteLength ` bytes of ` value ` to ` buf ` at the specified ` offset ` .
0 commit comments