MCPcopy
hub / github.com/monasticacademy/httptap / countBytesConn

Struct countBytesConn

http.go:113–116  ·  view source on GitHub ↗

CountBytesConn is a net.Conn that counts bytes read and written

Source from the content-addressed store, hash-verified

111
112// CountBytesConn is a net.Conn that counts bytes read and written
113type countBytesConn struct {
114 net.Conn
115 read, written int64
116}
117
118func (conn *countBytesConn) Read(b []byte) (int, error) {
119 n, err := conn.Conn.Read(b)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected