public static RecordKey TerminalKey(Table Parent, IElementHeader Header) { if (Header.TerminalPageID == -1) { return(RecordKey.RecordNotFound); } return(new RecordKey(Header.TerminalPageID, Parent.GetPage(Header.TerminalPageID).Count - 1)); }
public static RecordKey OriginKey(Table Parent, IElementHeader Header) { if (Header.OriginPageID == -1) { return(RecordKey.RecordNotFound); } return(new RecordKey(Header.OriginPageID, 0)); }
public PageWalker(Table Store, IElementHeader Header) { this._Store = Store; this._CurrentPageID = (this._Store.PageCount == 0 ? -1 : this._Store.OriginPageID); this._Header = Header; }
public RecordReaderBase(Table Data, IElementHeader Header) : this(Data, RecordReaderBase.OriginKey(Data, Header), RecordReaderBase.TerminalKey(Data, Header)) { }