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

Method Equal

byteview.go:96–101  ·  view source on GitHub ↗

Equal returns whether the bytes in b are the same as the bytes in b2.

(b2 ByteView)

Source from the content-addressed store, hash-verified

94// Equal returns whether the bytes in b are the same as the bytes in
95// b2.
96func (v ByteView) Equal(b2 ByteView) bool {
97 if b2.b == nil {
98 return v.EqualString(b2.s)
99 }
100 return v.EqualBytes(b2.b)
101}
102
103// EqualString returns whether the bytes in b are the same as the bytes
104// in s.

Callers 3

EqualBytesMethod · 0.80
TestByteViewFunction · 0.80
TestByteViewEqualFunction · 0.80

Calls 2

EqualStringMethod · 0.95
EqualBytesMethod · 0.95

Tested by 2

TestByteViewFunction · 0.64
TestByteViewEqualFunction · 0.64