public FdbFile(string path) { var reader = new BinaryReader(File.OpenRead(path)); TableCount = reader.ReadUInt32(); using (new FdbScope(reader)) { TableHeader = new FdbTableHeader(reader, this); } }
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); } }