BaseXCodec class
Fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression.
WARNING: This module is NOT RFC3548 compliant, it cannot be used for base16 (hex), base32, or base64 encoding in a standards compliant manner.
Constructors
- BaseXCodec(String alphabet)
Properties
- alphabet ↔ String
-
Alphabet
getter/setter pair
- base → int
-
Base
no setter
- baseMap ↔ Uint8List
-
BaseMap
getter/setter pair
- decoder → BaseXDecoder
-
Returns the decoder of
this
, converting fromT
toS
.no setteroverride - encoder → BaseXEncoder
-
Returns the encoder from
S
toT
.no setteroverride - factor → double
-
Factor
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- iFactor → double
-
iFactor
no setter
-
inverted
→ Codec<
String, Uint8List> -
Inverts
this
.no setterinherited - leader → String
-
First Char
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
String encoded) → Uint8List -
Decodes
encoded
data.inherited -
decodeUnsafe(
String encoded) → Uint8List? - Decode Unsafe Base X
-
encode(
Uint8List input) → String -
Encodes
input
.inherited -
fuse<
R> (Codec< String, R> other) → Codec<Uint8List, R> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited