MCPcopy Create free account
hub / github.com/golang/groupcache / At

Method At

byteview.go:63–68  ·  view source on GitHub ↗

At returns the byte at index i.

(i int)

Source from the content-addressed store, hash-verified

61
62// At returns the byte at index i.
63func (v ByteView) At(i int) byte {
64 if v.b != nil {
65 return v.b[i]
66 }
67 return v.s[i]
68}
69
70// Slice slices the view between the provided from and to indices.
71func (v ByteView) Slice(from, to int) ByteView {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected