Exemple #1
0
        private void WriteMagicAndSize(long Position, int Size)
        {
            const int DecMagic = 0x18029a7f;
            const int Key      = 0x49621806;

            int EncryptedSize = EndianSwap.Swap32(Size ^ Key);

            Memory.WriteInt32(Position + 0, DecMagic);
            Memory.WriteInt32(Position + 4, EncryptedSize);
        }