@@ -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 ` .
@@ -496,9 +496,9 @@ changes:
496
496
497
497
* ` size ` {integer} The desired length of the new ` Buffer ` .
498
498
* ` fill ` {string|Buffer|integer} A value to pre-fill the new ` Buffer ` with.
499
- ** Default:** ` 0 `
499
+ ** Default:** ` 0 ` .
500
500
* ` encoding ` {string} If ` fill ` is a string, this is its encoding.
501
- ** Default:** ` 'utf8' `
501
+ ** Default:** ` 'utf8' ` .
502
502
503
503
Allocates a new ` Buffer ` of ` size ` bytes. If ` fill ` is ` undefined ` , the
504
504
` Buffer ` will be * zero-filled* .
@@ -654,7 +654,7 @@ changes:
654
654
* ` string ` {string|Buffer|TypedArray|DataView|ArrayBuffer|SharedArrayBuffer} A
655
655
value to calculate the length of.
656
656
* ` encoding ` {string} If ` string ` is a string, this is its encoding.
657
- ** Default:** ` 'utf8' `
657
+ ** Default:** ` 'utf8' ` .
658
658
* Returns: {integer} The number of bytes contained within ` string ` .
659
659
660
660
Returns the actual byte length of a string. This is not the same as
@@ -774,9 +774,9 @@ added: v5.10.0
774
774
775
775
* ` arrayBuffer ` {ArrayBuffer|SharedArrayBuffer} An [ ` ArrayBuffer ` ] ,
776
776
[ ` SharedArrayBuffer ` ] , or the ` .buffer ` property of a [ ` TypedArray ` ] .
777
- * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 `
777
+ * ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 ` .
778
778
* ` length ` {integer} Number of bytes to expose.
779
- ** Default:** ` arrayBuffer.length - byteOffset `
779
+ ** Default:** ` arrayBuffer.length - byteOffset ` .
780
780
781
781
This creates a view of the [ ` ArrayBuffer ` ] without copying the underlying
782
782
memory. For example, when passed a reference to the ` .buffer ` property of a
@@ -845,7 +845,7 @@ added: v5.10.0
845
845
-->
846
846
847
847
* ` string ` {string} A string to encode.
848
- * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' `
848
+ * ` encoding ` {string} The encoding of ` string ` . ** Default:** ` 'utf8' ` .
849
849
850
850
Creates a new ` Buffer ` containing ` string ` . The ` encoding ` parameter identifies
851
851
the character encoding of ` string ` .
@@ -984,13 +984,13 @@ changes:
984
984
985
985
* ` target ` {Buffer|Uint8Array} A ` Buffer ` or [ ` Uint8Array ` ] to compare to.
986
986
* ` targetStart ` {integer} The offset within ` target ` at which to begin
987
- comparison. ** Default:** ` 0 `
987
+ comparison. ** Default:** ` 0 ` .
988
988
* ` targetEnd ` {integer} The offset with ` target ` at which to end comparison
989
- (not inclusive). ** Default:** ` target.length `
989
+ (not inclusive). ** Default:** ` target.length ` .
990
990
* ` sourceStart ` {integer} The offset within ` buf ` at which to begin comparison.
991
- ** Default:** ` 0 `
991
+ ** Default:** ` 0 ` .
992
992
* ` sourceEnd ` {integer} The offset within ` buf ` at which to end comparison
993
- (not inclusive). ** Default:** [ ` buf.length ` ]
993
+ (not inclusive). ** Default:** [ ` buf.length ` ] .
994
994
* Returns: {integer}
995
995
996
996
Compares ` buf ` with ` target ` and returns a number indicating whether ` buf `
@@ -1047,11 +1047,11 @@ added: v0.1.90
1047
1047
1048
1048
* ` target ` {Buffer|Uint8Array} A ` Buffer ` or [ ` Uint8Array ` ] to copy into.
1049
1049
* ` targetStart ` {integer} The offset within ` target ` at which to begin
1050
- copying to. ** Default:** ` 0 `
1050
+ copying to. ** Default:** ` 0 ` .
1051
1051
* ` sourceStart ` {integer} The offset within ` buf ` at which to begin copying from.
1052
- ** Default:** ` 0 `
1052
+ ** Default:** ` 0 ` .
1053
1053
* ` sourceEnd ` {integer} The offset within ` buf ` at which to stop copying (not
1054
- inclusive). ** Default:** [ ` buf.length ` ]
1054
+ inclusive). ** Default:** [ ` buf.length ` ] .
1055
1055
* Returns: {integer} The number of bytes copied.
1056
1056
1057
1057
Copies data from a region of ` buf ` to a region in ` target ` even if the ` target `
@@ -1165,10 +1165,10 @@ changes:
1165
1165
-->
1166
1166
1167
1167
* ` value ` {string|Buffer|integer} The value to fill ` buf ` with.
1168
- * ` offset ` {integer} Number of bytes to skip before starting to fill ` buf ` . ** Default:** ` 0 `
1169
- * ` end ` {integer} Where to stop filling ` buf ` (not inclusive). ** Default:** [ ` buf.length ` ]
1168
+ * ` offset ` {integer} Number of bytes to skip before starting to fill ` buf ` . ** Default:** ` 0 ` .
1169
+ * ` end ` {integer} Where to stop filling ` buf ` (not inclusive). ** Default:** [ ` buf.length ` ] .
1170
1170
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1171
- ** Default:** ` 'utf8' `
1171
+ ** Default:** ` 'utf8' ` .
1172
1172
* Returns: {Buffer} A reference to ` buf ` .
1173
1173
1174
1174
Fills ` buf ` with the specified ` value ` . If the ` offset ` and ` end ` are not given,
@@ -1216,9 +1216,9 @@ added: v5.3.0
1216
1216
-->
1217
1217
1218
1218
* ` value ` {string|Buffer|integer} What to search for.
1219
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 `
1219
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1220
1220
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1221
- ** Default:** ` 'utf8' `
1221
+ ** Default:** ` 'utf8' ` .
1222
1222
* Returns: {boolean} ` true ` if ` value ` was found in ` buf ` , ` false ` otherwise.
1223
1223
1224
1224
Equivalent to [ ` buf.indexOf() !== -1 ` ] [ `buf.indexOf()` ] .
@@ -1256,9 +1256,9 @@ changes:
1256
1256
-->
1257
1257
1258
1258
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1259
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 `
1259
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1260
1260
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1261
- ** Default:** ` 'utf8' `
1261
+ ** Default:** ` 'utf8' ` .
1262
1262
* Returns: {integer} The index of the first occurrence of ` value ` in ` buf ` or ` -1 `
1263
1263
if ` buf ` does not contain ` value ` .
1264
1264
@@ -1358,9 +1358,9 @@ changes:
1358
1358
1359
1359
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1360
1360
* ` byteOffset ` {integer} Where to begin searching in ` buf ` .
1361
- ** Default:** [ ` buf.length ` ] ` - 1 `
1361
+ ** Default:** [ ` buf.length ` ] ` - 1 ` .
1362
1362
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1363
- ** Default:** ` 'utf8' `
1363
+ ** Default:** ` 'utf8' ` .
1364
1364
* Returns: {integer} The index of the last occurrence of ` value ` in ` buf ` or ` -1 `
1365
1365
if ` buf ` does not contain ` value ` .
1366
1366
@@ -1792,9 +1792,9 @@ changes:
1792
1792
calculations with them.
1793
1793
-->
1794
1794
1795
- * ` start ` {integer} Where the new ` Buffer ` will start. ** Default:** ` 0 `
1795
+ * ` start ` {integer} Where the new ` Buffer ` will start. ** Default:** ` 0 ` .
1796
1796
* ` end ` {integer} Where the new ` Buffer ` will end (not inclusive).
1797
- ** Default:** [ ` buf.length ` ]
1797
+ ** Default:** [ ` buf.length ` ] .
1798
1798
* Returns: {Buffer}
1799
1799
1800
1800
Returns a new ` Buffer ` that references the same memory as the original, but
@@ -1963,10 +1963,10 @@ console.log(copy);
1963
1963
added: v0.1.90
1964
1964
-->
1965
1965
1966
- * ` encoding ` {string} The character encoding to decode to. ** Default:** ` 'utf8' `
1967
- * ` start ` {integer} The byte offset to start decoding at. ** Default:** ` 0 `
1966
+ * ` encoding ` {string} The character encoding to decode to. ** Default:** ` 'utf8' ` .
1967
+ * ` start ` {integer} The byte offset to start decoding at. ** Default:** ` 0 ` .
1968
1968
* ` end ` {integer} The byte offset to stop decoding at (not inclusive).
1969
- ** Default:** [ ` buf.length ` ]
1969
+ ** Default:** [ ` buf.length ` ] .
1970
1970
* Returns: {string}
1971
1971
1972
1972
Decodes ` buf ` to a string according to the specified character encoding in
@@ -2040,9 +2040,9 @@ added: v0.1.90
2040
2040
-->
2041
2041
2042
2042
* ` string ` {string} String to be written to ` buf ` .
2043
- * ` offset ` {integer} Number of bytes to skip before starting to write ` string ` . ** Default:** ` 0 `
2044
- * ` length ` {integer} Number of bytes to write. ** Default:** ` buf.length - offset `
2045
- * ` encoding ` {string} The character encoding of ` string ` . ** Default:** ` 'utf8' `
2043
+ * ` offset ` {integer} Number of bytes to skip before starting to write ` string ` . ** Default:** ` 0 ` .
2044
+ * ` length ` {integer} Number of bytes to write. ** Default:** ` buf.length - offset ` .
2045
+ * ` encoding ` {string} The character encoding of ` string ` . ** Default:** ` 'utf8' ` .
2046
2046
* Returns: {integer} Number of bytes written.
2047
2047
2048
2048
Writes ` string ` to ` buf ` at ` offset ` according to the character encoding in ` encoding ` .
@@ -2369,7 +2369,7 @@ changes:
2369
2369
* ` value ` {integer} Number to be written to ` buf ` .
2370
2370
* ` offset ` {integer} Number of bytes to skip before starting to write. Must satisfy: ` 0 <= offset <= buf.length - byteLength ` .
2371
2371
* ` byteLength ` {integer} Number of bytes to write. Must satisfy: ` 0 < byteLength <= 6 ` .
2372
- ** Default:** ` false `
2372
+ ** Default:** ` false ` .
2373
2373
* Returns: {integer} ` offset ` plus the number of bytes written.
2374
2374
2375
2375
Writes ` byteLength ` bytes of ` value ` to ` buf ` at the specified ` offset ` .
0 commit comments