@sovereignbase/bytecodec
    Preparing search index...

    Class Bytes

    Convenience wrapper around the codec functions.

    Index
    base45: {
        decode: (base45String: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • decode: (base45String: string) => Uint8Array
    • encode: (bytes: ByteSource) => string
    base64: {
        decode: (base64String: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • decode: (base64String: string) => Uint8Array
    • encode: (bytes: ByteSource) => string
    base64url: {
        decode: (base64UrlString: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • decode: (base64UrlString: string) => Uint8Array
    • encode: (bytes: ByteSource) => string
    gzip: {
        decode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>;
        encode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>;
    } = ...

    Type Declaration

    • decode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>
    • encode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>
    utf8: {
        decode: (text: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • decode: (text: string) => Uint8Array
    • encode: (bytes: ByteSource) => string
    • Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • byteLength: number

      Returns Uint8Array