Beta
Converts an ArrayBuffer to a string.
The ArrayBuffer to convert.
The encoding to use.
The string representation of the ArrayBuffer.
const str = 'hello world';const utf8 = new Uint8Array(strToCodes(str));equal(arrayBufferToString(utf8.buffer, UTF_8), str); Copy
const str = 'hello world';const utf8 = new Uint8Array(strToCodes(str));equal(arrayBufferToString(utf8.buffer, UTF_8), str);
Converts an ArrayBuffer to a string.