Decodes a Uint8Array or ArrayBuffer back into a string.
The buffer to decode
The text encoding to use (default: 'utf-8')
The decoded string
const str = decodeBuffer(buf); Copy
const str = decodeBuffer(buf);
Decodes a Uint8Array or ArrayBuffer back into a string.