Alexandria.Engines.DarkSouls.Archive.HashFilename C# (CSharp) Метод

HashFilename() публичный статический Метод

Produce a hash of the filename used in Dark Souls main archives' record ids.
public static HashFilename ( string input ) : int
input string The string to hash.
Результат int
        public static int HashFilename(string input)
        {
            if (string.IsNullOrEmpty(input))
                return 0;
            int hash = 0;
            foreach (char ch in input)
                hash = hash * 0x25 + char.ToLowerInvariant(ch);
            return hash;
        }