MCPcopy Create free account
hub / github.com/apple/foundationdb / nodeAt

Method nodeAt

fdbserver/include/fdbserver/DeltaTree.h:1015–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013
1014 int nodeOffset(const Node* n) const { return (uint8_t*)n - (uint8_t*)this; }
1015 Node* nodeAt(int offset) { return offset == 0 ? nullptr : (Node*)((uint8_t*)this + offset); }
1016 Node* root() { return numItems == 0 ? nullptr : (Node*)(this + 1); }
1017 int rootOffset() { return sizeof(DeltaTree2); }
1018

Callers 3

nodeMethod · 0.80
nodeMethod · 0.80
insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected