Endo API documentation
    Preparing search index...

    Variable encodeBase64Const

    encodeBase64: (data: Uint8Array<ArrayBufferLike>) => string = ...

    Encodes bytes into a Base64 string, as specified in https://tools.ietf.org/html/rfc4648#section-4

    Type declaration

      • (data: Uint8Array<ArrayBufferLike>): string
      • XSnap is a JavaScript engine based on Moddable/XS. The algorithm below is orders of magnitude too slow on this VM, but it arranges a native binding on the global object. We use that if it is available instead.

        This function is exported from this file for use in benchmarking, but is not part of the module's public API.

        Parameters

        • data: Uint8Array<ArrayBufferLike>

        Returns string

        base64 encoding