(b []byte)
| 107 | } |
| 108 | |
| 109 | func (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 | |
| 121 | func (c *QUICConn) Write(b []byte) (int, error) { |
| 122 | if c.Stream != nil { |
no outgoing calls
no test coverage detected