MCPcopy
hub / github.com/txthinking/brook / Read

Method Read

quic.go:109–119  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

107}
108
109func (c *QUICConn) Read(b []byte) (int, error) {
110 if c.Stream != nil {
111 return c.Stream.Read(b)
112 }
113 b1, err := c.Conn.ReceiveDatagram(context.Background())
114 if err != nil {
115 return 0, err
116 }
117 i := copy(b, b1)
118 return i, nil
119}
120
121func (c *QUICConn) Write(b []byte) (int, error) {
122 if c.Stream != nil {

Callers 15

TCPHandleMethod · 0.45
ExchangeMethod · 0.45
ExchangeMethod · 0.45
WaitReadErrFunction · 0.45
ExchangeMethod · 0.45
TCPHandleMethod · 0.45
UDPHandleMethod · 0.45
Socks5TestFunction · 0.45
HandleMethod · 0.45
ExchangeMethod · 0.45
Conn2ConnFunction · 0.45
EchoClientFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected