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

Method Key

internal/common/page.go:256–258  ·  view source on GitHub ↗

Key returns a byte slice of the node key.

()

Source from the content-addressed store, hash-verified

254
255// Key returns a byte slice of the node key.
256func (n *branchPageElement) Key() []byte {
257 return UnsafeByteSlice(unsafe.Pointer(n), 0, int(n.pos), int(n.pos)+int(n.ksize))
258}
259
260// leafPageElement represents a node on a leaf page.
261type leafPageElement struct {

Callers

nothing calls this directly

Calls 1

UnsafeByteSliceFunction · 0.85

Tested by

no test coverage detected