nonBlockingReader is optimized for non-memory-pinning reads using the RawConn interface.
| 46 | // nonBlockingReader is optimized for non-memory-pinning reads using the RawConn |
| 47 | // interface. |
| 48 | type nonBlockingReader struct { |
| 49 | raw syscall.RawConn |
| 50 | // The following fields are stored as field to avoid heap allocations. |
| 51 | state readState |
| 52 | doRead func(fd uintptr) bool |
| 53 | } |
| 54 | |
| 55 | type readState struct { |
| 56 | // Request params. |
nothing calls this directly
no outgoing calls
no test coverage detected