B64Decoder class

Constructors

B64Decoder()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

decode(String data, {bool validatePadding = true, bool urlSafe = true}) → BuBytes
Decodes a Base64 data string into bytes.
decodeWithInfo(String data, {bool validatePadding = true, bool urlSafe = true}) → B64DecodingInfo
tryDecode(String data, {bool validatePadding = true, bool urlSafe = true}) → BuBytes?
Tries to decode a Base64 string, returning null if decoding fails.

Constants

reverseTable → const List<int>
Maps an ASCII code unit to its Base64 value (0..63), or -1 if it isn't a Base64 character. Sized to 128 (not 256) since every valid Base64 character is ASCII - this also means any code unit >= 128 (e.g. genuine multi-byte Unicode) is rejected by a simple range check up front, rather than risking an out-of-range list access. Built once and reused for every decode() call.