Library API
    Preparing search index...

    Function decodeBuffer

    • Decodes a Uint8Array or ArrayBuffer back into a string.

      Parameters

      • buf: ArrayBuffer | Uint8Array<ArrayBufferLike>

        The buffer to decode

      • encoding: string = 'utf-8'

        The text encoding to use (default: 'utf-8')

      Returns string

      The decoded string

      const str = decodeBuffer(buf);