Beispiel #1
0
 internal RootNodeV(ARTImplV impl)
 {
     _impl           = impl;
     _root           = IntPtr.Zero;
     _writable       = true;
     _referenceCount = 1;
 }
 public ArtInMemoryKeyValueDB(IOffHeapAllocator allocator)
 {
     _lastCommited = ARTImplV.CreateEmptyRoot(allocator);
     _lastCommited.Commit();
 }
Beispiel #3
0
 public RootNodeVTests()
 {
     _allocator = new LeakDetectorWrapperAllocator(new HGlobalAllocator());
     _impl      = new ARTImplV(_allocator);
 }
Beispiel #4
0
 public CursorTestsBase()
 {
     _allocator = new LeakDetectorWrapperAllocator(new HGlobalAllocator());
     _root      = Is12 ? ARTImpl12.CreateEmptyRoot(_allocator) : ARTImplV.CreateEmptyRoot(_allocator);
     _cursor    = _root.CreateCursor();
 }