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

Method Less

node.go:536–538  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

534func (s nodes) Len() int { return len(s) }
535func (s nodes) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
536func (s nodes) Less(i, j int) bool {
537 return bytes.Compare(s[i].inodes[0].Key(), s[j].inodes[0].Key()) == -1
538}

Callers

nothing calls this directly

Calls 1

KeyMethod · 0.45

Tested by

no test coverage detected