Exemplo n.º 1
0
        public void UpdateMeta(int serialLength)
        {
            BulkDataStartOffset += serialLength - Exports.First().SerialSize;
            Exports.First().SerialSize = serialLength;
            NameCount = Names.Length;
            int num  = 193;
            int num2 = 0;

            FNameEntry[] names = Names;
            foreach (FNameEntry fNameEntry in names)
            {
                num2 += fNameEntry.GetLength();
            }
            int num3 = ImportCount * 28;
            int num4 = ExportCount * 108;

            ImportOffset            = num + num2;
            ExportOffset            = num + num2 + num3;
            DependsOffset           = num + num2 + num3 + num4 - 4;
            TotalHeaderSize         = num + num2 + num3 + num4 + 4;
            AssetRegistryDataOffset = num + num2 + num3 + num4;
            PreloadDependencyOffset = TotalHeaderSize;
            Generations.First().NameCount = Names.Length;
            Exports.First().SerialOffset  = TotalHeaderSize;
        }