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.
22 lines
306 B
22 lines
306 B
package pipe
|
|
|
|
import (
|
|
"v2ray.com/core/common/buf"
|
|
)
|
|
|
|
type Writer struct {
|
|
pipe *pipe
|
|
}
|
|
|
|
func (w *Writer) WriteMultiBuffer(mb buf.MultiBuffer) error {
|
|
return w.pipe.WriteMultiBuffer(mb)
|
|
}
|
|
|
|
func (w *Writer) Close() error {
|
|
return w.pipe.Close()
|
|
}
|
|
|
|
func (w *Writer) CloseError() {
|
|
w.pipe.CloseError()
|
|
}
|