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

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 -1 for 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<int>> stream) Stream<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 encoded array of numbers with bit-length of source to an array of numbers with bit-length of target. The encoded array will be treated as a sequence of bits to convert.
override
fuse<TT>(Converter<Iterable<int>, TT> other) Converter<Iterable<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<Iterable<int>> sink) Sink<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