@exodus/bytes
    Preparing search index...

    Function fromBase32crockford

    • Decode a Crockford base32 string to bytes

      Operates in strict mode for last chunk, does not allow whitespace

      Crockford base32 decoding follows extra mapping per spec: LIli -> 1, Oo -> 0

      Parameters

      • string: string

        The Crockford base32 encoded string

      • Optionaloptions: FromBase32Options & { format?: "uint8" }

        Decoding options

      Returns Uint8Array

      The decoded bytes

    • Decode a Crockford base32 string to bytes

      Operates in strict mode for last chunk, does not allow whitespace

      Crockford base32 decoding follows extra mapping per spec: LIli -> 1, Oo -> 0

      Parameters

      • string: string

        The Crockford base32 encoded string

      • options: FromBase32Options & { format: "arraybuffer" }

        Decoding options

      Returns ArrayBuffer

      The decoded bytes

    • Decode a Crockford base32 string to bytes

      Operates in strict mode for last chunk, does not allow whitespace

      Crockford base32 decoding follows extra mapping per spec: LIli -> 1, Oo -> 0

      Parameters

      • string: string

        The Crockford base32 encoded string

      • options: FromBase32Options & { format: "buffer" }

        Decoding options

      Returns Buffer

      The decoded bytes

    • Decode a Crockford base32 string to bytes

      Operates in strict mode for last chunk, does not allow whitespace

      Crockford base32 decoding follows extra mapping per spec: LIli -> 1, Oo -> 0

      Parameters

      • string: string

        The Crockford base32 encoded string

      • Optionaloptions: FromBase32Options

        Decoding options

      Returns ArrayBuffer | Uint8Array<ArrayBuffer> | Buffer<ArrayBufferLike>

      The decoded bytes