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

Method IsValidPage

internal/common/page.go:78–83  ·  view source on GitHub ↗

IsValidPage checks Page flags correctness, only a single proper flag can be used.

()

Source from the content-addressed store, hash-verified

76
77// IsValidPage checks Page flags correctness, only a single proper flag can be used.
78func (p *Page) IsValidPage() bool {
79 return p.IsBranchPage() ||
80 p.IsLeafPage() ||
81 p.IsMetaPage() ||
82 p.IsFreelistPage()
83}
84
85// Meta returns a pointer to the metadata section of the page.
86func (p *Page) Meta() *Meta {

Callers 1

FastCheckMethod · 0.95

Calls 4

IsBranchPageMethod · 0.95
IsLeafPageMethod · 0.95
IsMetaPageMethod · 0.95
IsFreelistPageMethod · 0.95

Tested by

no test coverage detected