Пример #1
0
 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));
 }
Пример #2
0
 public static RecordKey OriginKey(Table Parent, IElementHeader Header)
 {
     if (Header.OriginPageID == -1)
     {
         return(RecordKey.RecordNotFound);
     }
     return(new RecordKey(Header.OriginPageID, 0));
 }
Пример #3
0
 public PageWalker(Table Store, IElementHeader Header)
 {
     this._Store         = Store;
     this._CurrentPageID = (this._Store.PageCount == 0 ? -1 : this._Store.OriginPageID);
     this._Header        = Header;
 }
Пример #4
0
 public RecordReaderBase(Table Data, IElementHeader Header)
     : this(Data, RecordReaderBase.OriginKey(Data, Header), RecordReaderBase.TerminalKey(Data, Header))
 {
 }