Example #1
0
 public File(int id, FileStream stream)
 {
     Id     = id;
     Root   = new PagePosition(id, 0);
     Latch  = new LatchEntry(this);
     Stream = stream ?? throw new ArgumentNullException(nameof(stream));
 }
Example #2
0
 public BufferEntry(BufferState state, PagePosition pos)
 {
     State    = state;
     Latch    = new LatchEntry(this, LockRecursionPolicy.SupportsRecursion);
     Position = pos;
 }
Example #3
0
 public BufferEntry(BufferState state)
 {
     State = state;
     Latch = new LatchEntry(this);
 }