Base64Decoder class
A specialized AlphabetDecoder for Base-64.
Strips trailing padding once, then decodes complete 4-character groups into 3 bytes with straight-line code, leaving only the final partial group to the bit-accumulator. This keeps the hot path free of the generic decoder's per-character inner loop and padding bookkeeping.
Every intermediate value stays within 8 bits, so it is safe on the JavaScript platform.
- Inheritance
-
- Object
- Converter<
Iterable< int> , Iterable<int> > - BitConverter
- BitDecoder
- ByteDecoder
- AlphabetDecoder
- Base64Decoder
Constructors
-
Base64Decoder({required List<
int> alphabet, int? padding}) -
Creates a new Base64Decoder instance.
const
Properties
-
alphabet
→ List<
int> -
The reverse lookup table mapping a character code to its word value, with
-1for character codes that are not part of the alphabet.finalinherited - bits → int
-
The bit-length of a single word in the encoded input.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → int?
-
The padding character.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → int
-
The bit-length of the input array elements.
The value should be between 2 to 64.
no setterinherited
- target → int
-
The bit-length of the output array elements.
The value should be between 2 to 64.
finalinherited
Methods
-
bind(
Stream< Iterable< stream) → Stream<int> >Iterable< int> > -
Transforms the provided
stream.inherited -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>view of this stream transformer.inherited -
convert(
covariant List< int> encoded) → Uint8List -
Converts
encodedarray of numbers with bit-length of source to an array of numbers with bit-length of target. Theencodedarray will be treated as a sequence of bits to convert.override -
fuse<
TT> (Converter< Iterable< other) → Converter<int> , TT>Iterable< int> , TT> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< Iterable< sink) → Sink<int> >Iterable< int> > -
Starts a chunked conversion.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited