Apachai.Hasher.ComputeShortValue C# (CSharp) 메소드

ComputeShortValue() 공개 정적인 메소드

public static ComputeShortValue ( long value ) : string
value long
리턴 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 ();
        }