예제 #1
0
        public void Read(BinaryReader reader)
        {
            ExtensionHash = reader.ReadUInt64();
            NameHash      = reader.ReadUInt64();

            int count    = reader.ReadInt32();
            int unknown1 = reader.ReadInt32();
            var headers  = new List <BundleFileEntryHeader>(count);

            for (int i = 0; i < count; i++)
            {
                var header = new BundleFileEntryHeader
                {
                    LanguageId = reader.ReadInt32(),
                    Size       = reader.ReadInt32(),
                    Unknown    = reader.ReadInt32()
                };
                headers.Add(header);
            }
            EntryHeaders = headers;
            DataOffset   = reader.BaseStream.Position;

            var size = headers.Sum(c => c.Size);

            reader.BaseStream.Position += size;
        }
        public void Read(BinaryReader reader)
        {
            ExtensionHash = reader.ReadUInt64();
            NameHash = reader.ReadUInt64();

            int count = reader.ReadInt32();
            int unknown1 = reader.ReadInt32();
            var headers = new List<BundleFileEntryHeader>(count);
            for (int i = 0; i < count; i++)
            {
                var header = new BundleFileEntryHeader
                {
                    LanguageId = reader.ReadInt32(),
                    Size = reader.ReadInt32(),
                    Unknown = reader.ReadInt32()
                };
                headers.Add(header);
            }
            EntryHeaders = headers;
            DataOffset = reader.BaseStream.Position;

            var size = headers.Sum(c => c.Size);
            reader.BaseStream.Position += size;
        }