Beispiel #1
0
        public FdbFile(string path)
        {
            var reader = new BinaryReader(File.OpenRead(path));

            TableCount = reader.ReadUInt32();

            using (new FdbScope(reader))
            {
                TableHeader = new FdbTableHeader(reader, this);
            }
        }
Beispiel #2
0
        public FdbFile(string path, Action <uint> onTableLoaded, out uint tableCount)
        {
            var reader = new BinaryReader(File.OpenRead(path));

            TableCount = reader.ReadUInt32();
            tableCount = TableCount;

            using (new FdbScope(reader))
            {
                TableHeader = new FdbTableHeader(reader, this, onTableLoaded);
            }
        }