(bs []byte)
| 69 | } |
| 70 | |
| 71 | func (c *bufferedWriteConn) Write(bs []byte) (int, error) { |
| 72 | n, err := c.w.Write(bs) |
| 73 | if err == nil && !c.manualFlush { |
| 74 | err = c.w.Flush() |
| 75 | } |
| 76 | return n, err |
| 77 | } |
| 78 | |
| 79 | // TestFastPath exercises the Read codepath that can receive multiple |
| 80 | // Noise frames at once and decode each in turn without making another |