You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the reference of the modules available in our engine.
4
+
5
+
This documentation is auto-generated from the Typescript typing ([`@caido/quickjs-types`](https://www.npmjs.com/package/@caido/quickjs-types)) which is the source of truth.
6
+
7
+
Some elements are similar to `Node.JS`, but some imports will be different and start with `caido:`.
Returns the byte length of a string when encoded using `encoding`.
1646
1646
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
|`string`|`string`\|`ArrayBuffer`\|`SharedArrayBuffer`\|[`ArrayBufferView`](globals/namespaces/QuickJS.md#arraybufferview)\|[`Buffer`](#buffer)| A value to calculate the length of. |
1668
+
|`string`|`string`\|[`ArrayBufferView`](globals/namespaces/QuickJS.md#arraybufferview)\|[`Buffer`](#buffer)\|`ArrayBuffer`\|`SharedArrayBuffer`| A value to calculate the length of. |
1669
1669
|`encoding?`|[`BufferEncoding`](#bufferencoding)| If `string` is a string, this is its encoding. |
0 commit comments