@@ -1281,7 +1281,8 @@ added: v5.3.0
1281
1281
-->
1282
1282
1283
1283
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1284
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1284
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . If negative, then
1285
+ offset is calculated from the end of ` buf ` . ** Default:** ` 0 ` .
1285
1286
* ` encoding ` {string} If ` value ` is a string, this is its encoding.
1286
1287
** Default:** ` 'utf8' ` .
1287
1288
* Returns: {boolean} ` true ` if ` value ` was found in ` buf ` , ` false ` otherwise.
@@ -1321,7 +1322,8 @@ changes:
1321
1322
-->
1322
1323
1323
1324
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1324
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` . ** Default:** ` 0 ` .
1325
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . If negative, then
1326
+ offset is calculated from the end of ` buf ` . ** Default:** ` 0 ` .
1325
1327
* ` encoding ` {string} If ` value ` is a string, this is the encoding used to
1326
1328
determine the binary representation of the string that will be searched for in
1327
1329
` buf ` . ** Default:** ` 'utf8' ` .
@@ -1423,8 +1425,9 @@ changes:
1423
1425
-->
1424
1426
1425
1427
* ` value ` {string|Buffer|Uint8Array|integer} What to search for.
1426
- * ` byteOffset ` {integer} Where to begin searching in ` buf ` .
1427
- ** Default:** [ ` buf.length ` ] ` - 1 ` .
1428
+ * ` byteOffset ` {integer} Where to begin searching in ` buf ` . If negative, then
1429
+ offset is calculated from the end of ` buf ` . ** Default:**
1430
+ [ ` buf.length ` ] ` - 1 ` .
1428
1431
* ` encoding ` {string} If ` value ` is a string, this is the encoding used to
1429
1432
determine the binary representation of the string that will be searched for in
1430
1433
` buf ` . ** Default:** ` 'utf8' ` .
0 commit comments