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

Function ByteViewSink

sinks.go:106–111  ·  view source on GitHub ↗

ByteViewSink returns a Sink that populates a ByteView.

(dst *ByteView)

Source from the content-addressed store, hash-verified

104
105// ByteViewSink returns a Sink that populates a ByteView.
106func ByteViewSink(dst *ByteView) Sink {
107 if dst == nil {
108 panic("nil dst")
109 }
110 return &byteViewSink{dst: dst}
111}
112
113type byteViewSink struct {
114 dst *ByteView

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…