src/crockfordb32

Search:
Group by:
Source   Edit  

Procs

proc decode[T: SomeInteger](__520093713: typedesc[T]; inp: string): T
Decodes a number from crockford base32, raises a ValueError if it cannot be decoded. Source   Edit  
proc encode[T: SomeInteger](__520093702: typedesc[T]; number: T;
                            length: int = -1): string
Encodes an integer as a crockford base32 string, appending 0s for padding (this does nothing to the encoded data, so it may exceed the given length). Source   Edit