mirror of https://github.com/v2ray/v2ray-core
24 lines
389 B
Go
24 lines
389 B
Go
package pipe
|
|
|
|
import (
|
|
"time"
|
|
|
|
"v2ray.com/core/common/buf"
|
|
)
|
|
|
|
type Reader struct {
|
|
pipe *pipe
|
|
}
|
|
|
|
func (r *Reader) ReadMultiBuffer() (buf.MultiBuffer, error) {
|
|
return r.pipe.ReadMultiBuffer()
|
|
}
|
|
|
|
func (r *Reader) ReadMultiBufferWithTimeout(d time.Duration) (buf.MultiBuffer, error) {
|
|
return r.pipe.ReadMultiBufferWithTimeout(d)
|
|
}
|
|
|
|
func (r *Reader) CloseError() {
|
|
r.pipe.CloseError()
|
|
}
|