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

Method Copy

byteview.go:87–92  ·  view source on GitHub ↗

Copy copies b into dest and returns the number of bytes copied.

(dest []byte)

Source from the content-addressed store, hash-verified

85
86// Copy copies b into dest and returns the number of bytes copied.
87func (v ByteView) Copy(dest []byte) int {
88 if v.b != nil {
89 return copy(dest, v.b)
90 }
91 return copy(dest, v.s)
92}
93
94// Equal returns whether the bytes in b are the same as the bytes in
95// b2.

Callers 3

GetMethod · 0.80
ReadAtMethod · 0.80
TestByteViewFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestByteViewFunction · 0.64