MCPcopy Create free account
hub / github.com/couchbase/moss / Len

Method Len

segment.go:299–301  ·  view source on GitHub ↗

------------------------------------------------------ Len returns the number of ops in the segment.

()

Source from the content-addressed store, hash-verified

297
298// Len returns the number of ops in the segment.
299func (a *segment) Len() int {
300 return len(a.kvs) / 2
301}
302
303func (a *segment) Swap(i, j int) {
304 x := i * 2

Callers 4

CursorMethod · 0.95
searchIndexMethod · 0.95
ValidMethod · 0.95
buildIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected