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

Method SliceFrom

byteview.go:79–84  ·  view source on GitHub ↗

SliceFrom slices the view from the provided index until the end.

(from int)

Source from the content-addressed store, hash-verified

77
78// SliceFrom slices the view from the provided index until the end.
79func (v ByteView) SliceFrom(from int) ByteView {
80 if v.b != nil {
81 return ByteView{b: v.b[from:]}
82 }
83 return ByteView{s: v.s[from:]}
84}
85
86// Copy copies b into dest and returns the number of bytes copied.
87func (v ByteView) Copy(dest []byte) int {

Callers 2

ReadAtMethod · 0.95
TestByteViewSliceFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestByteViewSliceFunction · 0.64