コード例 #1
0
        public void Read(Stream input)
        {
            BinaryReader reader = new BinaryReader(input, Encoding.ASCII, false);

            uint magic = reader.ReadUInt32();
            Debug.Assert(magic == 0x00000002);

            uint fileCount = reader.ReadUInt32();

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

            Entries = entries;
        }
コード例 #2
0
        public void Read(Stream input)
        {
            BinaryReader reader = new BinaryReader(input, Encoding.ASCII, false);

            uint magic = reader.ReadUInt32();

            Debug.Assert(magic == 0x00000002);

            uint fileCount = reader.ReadUInt32();

            var entries = new List <BundleDatabaseEntry>();

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

            Entries = entries;
        }