Crockford::Encoding
Inherits Reference < Object
Constructors
new(alphabet : Array(UInt8), decode_map : Hash(UInt8, UInt8))
SourceInstance methods
alphabet
Sourcealphabet=(alphabet : Array(UInt8))
Sourcedecode(ascii_ord : UInt8) : UInt8
decode ASCII character represented as a UInt8 into a UInt value in the range 0-31
decode_map
Sourcedecode_map=(decode_map : Hash(UInt8, UInt8))
Sourceencode(val : UInt8) : UInt8
encode UInt8 value in the range 0-31 into an ASCII character represented as a UInt8