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

Function pageItemPrintLeafItemValue

cmd/bbolt/command/command_page_item.go:92–98  ·  view source on GitHub ↗
(w io.Writer, pageBytes []byte, index uint16, format string)

Source from the content-addressed store, hash-verified

90}
91
92func pageItemPrintLeafItemValue(w io.Writer, pageBytes []byte, index uint16, format string) error {
93 _, v, err := pageItemLeafPageElement(pageBytes, index)
94 if err != nil {
95 return err
96 }
97 return writelnBytes(w, v, format)
98}
99
100func pageItemLeafPageElement(pageBytes []byte, index uint16) ([]byte, []byte, error) {
101 p := common.LoadPage(pageBytes)

Callers 1

pageItemFuncFunction · 0.85

Calls 2

pageItemLeafPageElementFunction · 0.85
writelnBytesFunction · 0.85

Tested by

no test coverage detected