Exemple #1
0
 internal RootNode12(BTreeImpl12 impl)
 {
     Impl            = impl;
     Root            = IntPtr.Zero;
     Writable        = true;
     _referenceCount = 1;
 }
Exemple #2
0
 protected CursorTestsBase()
 {
     _allocator = new LeakDetectorWrapperAllocator(new HGlobalAllocator());
     _root      = BTreeImpl12.CreateEmptyRoot(_allocator);
     _cursor    = _root !.CreateCursor();
 }
 public CursorTestsBase()
 {
     _allocator = new LeakDetectorWrapperAllocator(new HGlobalAllocator());
     _root      = Is12 ? BTreeImpl12.CreateEmptyRoot(_allocator) : null /*ARTImplV.CreateEmptyRoot(_allocator)*/;
     _cursor    = _root.CreateCursor();
 }
Exemple #4
0
 public FindResult Find(ReadOnlySpan <byte> key)
 {
     return(BTreeImpl12.Find(_rootNode, ref _stack, key));
 }
Exemple #5
0
 public long FindLastWithPrefix(ReadOnlySpan <byte> keyPrefix)
 {
     return(BTreeImpl12.FindLastWithPrefix(_rootNode, keyPrefix));
 }
Exemple #6
0
 public long CalcIndex()
 {
     return(BTreeImpl12.CalcIndex(_stack.AsSpan()));
 }
 public RootNode12Tests()
 {
     _allocator = new LeakDetectorWrapperAllocator(new HGlobalAllocator());
     _impl      = new BTreeImpl12(_allocator);
 }