IsValidPage checks Page flags correctness, only a single proper flag can be used.
()
| 76 | |
| 77 | // IsValidPage checks Page flags correctness, only a single proper flag can be used. |
| 78 | func (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. |
| 86 | func (p *Page) Meta() *Meta { |
no test coverage detected