MCPcopy
hub / github.com/containerd/containerd / parentPrefixKey

Function parentPrefixKey

core/snapshots/storage/bolt.go:63–67  ·  view source on GitHub ↗

parentPrefixKey returns the parent part of the composite key with the zero byte separator.

(parent uint64)

Source from the content-addressed store, hash-verified

61// parentPrefixKey returns the parent part of the composite key with the
62// zero byte separator.
63func parentPrefixKey(parent uint64) []byte {
64 b := make([]byte, binary.Size(parent)+1)
65 i := binary.PutUvarint(b, parent)
66 return b[0 : i+1]
67}
68
69// getParentPrefix returns the first part of the composite key which
70// represents the parent identifier.

Callers 1

RemoveFunction · 0.85

Calls 1

SizeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…