OptimizedCopyWithMetrics performs high-performance bidirectional copying with metrics tracking
(dst, src net.Conn, recordBytes func(int64))
| 300 | |
| 301 | // OptimizedCopyWithMetrics performs high-performance bidirectional copying with metrics tracking |
| 302 | func OptimizedCopyWithMetrics(dst, src net.Conn, recordBytes func(int64)) { |
| 303 | OptimizedCopyWithBufferSizeAndMetrics(dst, src, OptimizedBufferSize, recordBytes) |
| 304 | } |
| 305 | |
| 306 | // OptimizedCopyWithBufferSizeAndMetrics performs optimized copying with custom buffer size and metrics |
| 307 | func OptimizedCopyWithBufferSizeAndMetrics(dst, src net.Conn, bufferSize int, recordBytes func(int64)) { |
no test coverage detected