mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
389 B
24 lines
389 B
7 years ago
|
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()
|
||
|
}
|