pageElementSize returns the size of each page element based on the type of node.
()
| 64 | |
| 65 | // pageElementSize returns the size of each page element based on the type of node. |
| 66 | func (n *node) pageElementSize() uintptr { |
| 67 | if n.isLeaf { |
| 68 | return common.LeafPageElementSize |
| 69 | } |
| 70 | return common.BranchPageElementSize |
| 71 | } |
| 72 | |
| 73 | // childAt returns the child node at a given index. |
| 74 | func (n *node) childAt(index int) *node { |
no outgoing calls
no test coverage detected