/// <summary> /// Initialize database reader with database stream file and password /// </summary> public bool Initialize(Stream stream, string password) { // test if current stream is V6 if (stream.ReadByte(25 + 27) != 6) { return(false); } _disk = new FileDiskService(stream, password); _pager = new PageService(_disk); _indexer = new IndexService(_pager); _data = new DataService(_pager); _collections = new CollectionService(_pager); return(true); }
public PageService(FileDiskService disk) { _disk = disk; }