示例#1
0
        public void WriteStringWithHash(uint version, string value, bool withPadding = false, bool isCatherineFullBodyData = false)
        {
            WriteString(value);

            if (isCatherineFullBodyData && withPadding)
            {
                WriteByte(0);   // padding byte
            }
            if (version > 0x1080000)
            {
                WriteInt32(StringHasher.GenerateStringHash(value));
            }
        }
示例#2
0
        private void WriteStringWithHash(uint version, string value)
        {
            WriteString(value);

            if (version > 0x1080000)
            {
                WriteInt(StringHasher.GenerateStringHash(value));

                // if ( version <= 0x1104990 )
                // {
                //    hash = StringHasher.GenerateStringHash(str); // TODO: unsupported hash algo?
                // }
            }
        }