예제 #1
0
        private void ReadEntries(Stream input)
        {
            BinaryReader reader     = new BinaryReader(input, Encoding.ASCII, true);
            int          entryCount = reader.ReadInt32();

            // Skip the unknown header section
            input.Position += 256;

            var tableEntries = new List <BundleFileEntryHash>();

            for (int i = 0; i < entryCount; i++)
            {
                var tableEntry = new BundleFileEntryHash();
                tableEntry.Read(reader);
                tableEntries.Add(tableEntry);
            }

            var entries = new List <BundleFileEntry>();

            for (int i = 0; i < entryCount; i++)
            {
                var entry = new BundleFileEntry();
                entry.Read(reader);
                entries.Add(entry);
            }

            Entries = entries;
        }
        private void ReadEntries(Stream input)
        {
            BinaryReader reader = new BinaryReader(input, Encoding.ASCII, true);
            int entryCount = reader.ReadInt32();
            // Skip the unknown header section
            input.Position += 256;

            var tableEntries = new List<BundleFileEntryHash>();
            for (int i = 0; i < entryCount; i++)
            {
                var tableEntry = new BundleFileEntryHash();
                tableEntry.Read(reader);
                tableEntries.Add(tableEntry);
            }

            var entries = new List<BundleFileEntry>();
            for (int i = 0; i < entryCount; i++)
            {
                var entry = new BundleFileEntry();
                entry.Read(reader);
                entries.Add(entry);
            }

            Entries = entries;
        }