class Crockford::Encoding

Defined in:

crockford.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(alphabet : Array(UInt8), decode_map : Hash(UInt8, UInt8)) #

[View source]

Instance Method Detail

def alphabet : Array(UInt8) #

[View source]
def alphabet=(alphabet : Array(UInt8)) #

[View source]
def decode(ascii_ord : UInt8) : UInt8 #

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


[View source]
def decode_map : Hash(UInt8, UInt8) #

[View source]
def decode_map=(decode_map : Hash(UInt8, UInt8)) #

[View source]
def encode(val : UInt8) : UInt8 #

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


[View source]