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

Function LoadPage

internal/common/utils.go:14–16  ·  view source on GitHub ↗
(buf []byte)

Source from the content-addressed store, hash-verified

12}
13
14func LoadPage(buf []byte) *Page {
15 return (*Page)(unsafe.Pointer(&buf[0]))
16}
17
18func LoadPageMeta(buf []byte) *Meta {
19 return (*Meta)(unsafe.Pointer(&buf[PageHeaderSize]))

Callers 13

ReadPageFunction · 0.92
WritePageFunction · 0.92
TestFreeList_initFunction · 0.92
TestFreeList_reloadFunction · 0.92
TestFreelist_read_panicsFunction · 0.92
TestFreelist_E2E_ReloadFunction · 0.92
pageItemLeafPageElementFunction · 0.92
pagePrintLeafFunction · 0.92
pagePrintBranchFunction · 0.92
pagePrintFreelistFunction · 0.92

Calls

no outgoing calls

Tested by 7

TestFreeList_initFunction · 0.74
TestFreeList_reloadFunction · 0.74
TestFreelist_read_panicsFunction · 0.74
TestFreelist_E2E_ReloadFunction · 0.74
TestSurgery_ClearPageFunction · 0.74