MCPcopy Index your code
hub / github.com/koding/kite / Read

Method Read

tunnelproxy/tunnel.go:66–73  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

64}
65
66func (s SessionReadWriteCloser) Read(b []byte) (int, error) {
67 str, err := s.session.Recv()
68 if err != nil {
69 return 0, err
70 }
71 copy(b, []byte(str))
72 return len(str), nil
73}
74
75func (s SessionReadWriteCloser) Write(b []byte) (int, error) {
76 return len(b), s.session.Send(string(b))

Callers

nothing calls this directly

Calls 1

RecvMethod · 0.45

Tested by

no test coverage detected