MCPcopy
hub / github.com/etcd-io/bbolt / pageElementSize

Method pageElementSize

node.go:66–71  ·  view source on GitHub ↗

pageElementSize returns the size of each page element based on the type of node.

()

Source from the content-addressed store, hash-verified

64
65// pageElementSize returns the size of each page element based on the type of node.
66func (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.
74func (n *node) childAt(index int) *node {

Callers 3

sizeMethod · 0.95
sizeLessThanMethod · 0.95
splitIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected