Documentation
    Preparing search index...

    Interface Codec

    interface Codec {
        decode: (data: string | BufferSource) => Uint8Array<ArrayBuffer>;
        encode: (data: string | BufferSource, pad?: boolean) => string;
    }
    Index

    Properties

    Properties

    decode: (data: string | BufferSource) => Uint8Array<ArrayBuffer>
    encode: (data: string | BufferSource, pad?: boolean) => string

    Encode bytes or utf8 string to string

    Type Declaration

      • (data: string | BufferSource, pad?: boolean): string
      • Parameters

        • data: string | BufferSource

          Data to be encoded to string

        • Optionalpad: boolean

          Should have padding. Defaults: true

        Returns string