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

Method BranchPageElement

internal/common/page.go:117–120  ·  view source on GitHub ↗

BranchPageElement retrieves the branch node by index

(index uint16)

Source from the content-addressed store, hash-verified

115
116// BranchPageElement retrieves the branch node by index
117func (p *Page) BranchPageElement(index uint16) *branchPageElement {
118 return (*branchPageElement)(UnsafeIndex(unsafe.Pointer(p), unsafe.Sizeof(*p),
119 unsafe.Sizeof(branchPageElement{}), int(index)))
120}
121
122// BranchPageElements retrieves a list of branch nodes.
123func (p *Page) BranchPageElements() []branchPageElement {

Callers 13

forEachPageInternalMethod · 0.80
StatsMethod · 0.80
_forEachPageNodeMethod · 0.80
lastMethod · 0.80
traverseMethod · 0.80
ReadInodeFromPageFunction · 0.80
WriteInodeToPageFunction · 0.80
pagePrintBranchFunction · 0.80

Calls 1

UnsafeIndexFunction · 0.85

Tested by 2