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

Method hexdump

internal/common/page.go:170–173  ·  view source on GitHub ↗

dump writes n bytes of the page to STDERR as hex output.

(n int)

Source from the content-addressed store, hash-verified

168
169// dump writes n bytes of the page to STDERR as hex output.
170func (p *Page) hexdump(n int) {
171 buf := UnsafeByteSlice(unsafe.Pointer(p), 0, 0, n)
172 fmt.Fprintf(os.Stderr, "%x\n", buf)
173}
174
175func (p *Page) PageElementSize() uintptr {
176 if p.IsLeafPage() {

Callers 1

TestPage_dumpFunction · 0.80

Calls 1

UnsafeByteSliceFunction · 0.85

Tested by 1

TestPage_dumpFunction · 0.64