MCPcopy
hub / github.com/IceWhaleTech/CasaOS / Read

Method Read

service/file.go:48–55  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

46}
47
48func (r *reader) Read(p []byte) (n int, err error) {
49 select {
50 case <-r.ctx.Done():
51 return 0, r.ctx.Err()
52 default:
53 return r.r.Read(p)
54 }
55}
56
57type writer struct {
58 ctx context.Context

Callers 8

GetFunction · 0.80
PersonGetFunction · 0.80
ReadToBoundaryFunction · 0.80
ParseFromHeadFunction · 0.80
GetImageExtFunction · 0.80
buffMethod · 0.80
GetDownloadSingleFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected