* Returns the byte length of a string when encoded using `encoding`. * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account * for the encoding that is used to convert the
(
string:
| string
| Buffer
| QuickJS.ArrayBufferView
| ArrayBuffer
| SharedArrayBuffer,
encoding?: BufferEncoding
)
| 101 | * @return The number of bytes contained within `string`. |
| 102 | */ |
| 103 | byteLength( |
| 104 | string: |
| 105 | | string |
| 106 | | Buffer |