Apachai.Hasher.ComputeShortValue C# (CSharp) Méthode

ComputeShortValue() public static méthode

public static ComputeShortValue ( long value ) : string
value long
Résultat string
        public static string ComputeShortValue(long value)
        {
            int baseSize = baseMap.Length;
            long dividend = value;
            StringBuilder sb = new StringBuilder ();

            while (dividend > baseSize) {
                sb.Append (baseMap[dividend % baseSize]);
                dividend /= baseSize;
            }

            sb.Append (baseMap[dividend]);

            return sb.ToString ();
        }