MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / Read

Method Read

stream/debug.go:28–45  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

26}
27
28func (d *DebugStream) Read(p []byte) (n int, err error) {
29 n, err = d.reader.Read(p)
30 if n > 0 && d.max > d.count.Load() {
31 d.count.Add(1)
32 if err != nil {
33 d.log.Err(err).
34 Str("dir", "r").
35 Int("count", n).
36 Msgf("%+q", p[:n])
37 } else {
38 d.log.Debug().
39 Str("dir", "r").
40 Int("count", n).
41 Msgf("%+q", p[:n])
42 }
43 }
44 return
45}
46
47func (d *DebugStream) Write(p []byte) (n int, err error) {
48 n, err = d.writer.Write(p)

Callers 11

HandleMethod · 0.45
readAddrSpecFunction · 0.45
readMethodsFunction · 0.45
ServeMethod · 0.45
tcpEyeballFunction · 0.45
echoTCPFunction · 0.45
copyDataFunction · 0.45
testSessionReturnsFunction · 0.45
serveMethod · 0.45
dstToTransportMethod · 0.45

Calls 3

IntMethod · 0.80
AddMethod · 0.65
ErrMethod · 0.45

Tested by 5

tcpEyeballFunction · 0.36
echoTCPFunction · 0.36
testSessionReturnsFunction · 0.36
serveMethod · 0.36