class

Crockford::Encoding

Inherits Reference < Object

Constructors

new(alphabet : Array(UInt8), decode_map : Hash(UInt8, UInt8))
Source

Instance methods

alphabet
Source
alphabet=(alphabet : Array(UInt8))
Source
decode(ascii_ord : UInt8) : UInt8

decode ASCII character represented as a UInt8 into a UInt value in the range 0-31

Source
decode_map
Source
decode_map=(decode_map : Hash(UInt8, UInt8))
Source
encode(val : UInt8) : UInt8

encode UInt8 value in the range 0-31 into an ASCII character represented as a UInt8

Source