Beispiel #1
0
 public static PageCorruption <KEY, VALUE> MinimizeAllocOffsetInDynamicNode <KEY, VALUE>()
 {
     return((cursor, layout, node, treeState) =>
     {
         TreeNodeDynamicSize dynamicNode = AssertDynamicNode(node);
         dynamicNode.setAllocOffset(cursor, TreeNodeDynamicSize.HeaderLengthDynamic);
     });
 }
Beispiel #2
0
 public static PageCorruption <KEY, VALUE> MaximizeAllocOffsetInDynamicNode <KEY, VALUE>()
 {
     return((cursor, layout, node, treeState) =>
     {
         TreeNodeDynamicSize dynamicNode = AssertDynamicNode(node);
         dynamicNode.setAllocOffset(cursor, cursor.CurrentPageSize);                   // Clear alloc space
     });
 }
Beispiel #3
0
 public static PageCorruption <KEY, VALUE> DecrementAllocOffsetInDynamicNode <KEY, VALUE>()
 {
     return((cursor, layout, node, treeState) =>
     {
         TreeNodeDynamicSize dynamicNode = AssertDynamicNode(node);
         int allocOffset = dynamicNode.getAllocOffset(cursor);
         dynamicNode.setAllocOffset(cursor, allocOffset - 1);
     });
 }