encode

Function encode 

Source
pub fn encode(bits: u128) -> String
Expand description

Encode 128 bits as an IfcGloballyUniqueId: 22 characters of ALPHABET, read MSB-first. 22 x 6 = 132 bits is four more than a GUID holds, so the FIRST character carries only the top 2 bits (0..3) and each of the other 21 carries 6. That split is the IFC convention, not RFC 4648 base64: a different alphabet order, no padding, and no byte alignment.