MCPcopy
hub / github.com/coder/websocket / ReaderFunc

FuncType ReaderFunc

internal/util/util.go:11–11  ·  view source on GitHub ↗

ReaderFunc is used to implement one off io.Readers.

func(p []byte) (int, error)

Source from the content-addressed store, hash-verified

9
10// ReaderFunc is used to implement one off io.Readers.
11type ReaderFunc func(p []byte) (int, error)
12
13func (f ReaderFunc) Read(p []byte) (int, error) {
14 return f(p)

Callers 1

RecordBytesReadMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…