MCPcopy Create free account
hub / github.com/awslabs/llrt / byteLength

Method byteLength

types/buffer.d.ts:103–103  ·  view source on GitHub ↗

* 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
    )

Source from the content-addressed store, hash-verified

101 * @return The number of bytes contained within `string`.
102 */
103 byteLength(
104 string:
105 | string
106 | Buffer

Callers 1

buffer.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected