MCPcopy Index your code
hub / github.com/golang/groupcache / Len

Method Len

byteview.go:39–44  ·  view source on GitHub ↗

Len returns the view's length.

()

Source from the content-addressed store, hash-verified

37
38// Len returns the view's length.
39func (v ByteView) Len() int {
40 if v.b != nil {
41 return len(v.b)
42 }
43 return len(v.s)
44}
45
46// ByteSlice returns a copy of the data as a byte slice.
47func (v ByteView) ByteSlice() []byte {

Callers 4

EqualStringMethod · 0.95
EqualBytesMethod · 0.95
ReadAtMethod · 0.95
WriteToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected