()
| 9 | ) |
| 10 | |
| 11 | func (c *Conn) RecordBytesWritten() *int { |
| 12 | var bytesWritten int |
| 13 | c.bw.Reset(util.WriterFunc(func(p []byte) (int, error) { |
| 14 | bytesWritten += len(p) |
| 15 | return c.rwc.Write(p) |
| 16 | })) |
| 17 | return &bytesWritten |
| 18 | } |
| 19 | |
| 20 | func (c *Conn) RecordBytesRead() *int { |
| 21 | var bytesRead int |
no test coverage detected