writer.go 306 B

123456789101112131415161718192021
  1. package pipe
  2. import (
  3. "v2ray.com/core/common/buf"
  4. )
  5. type Writer struct {
  6. pipe *pipe
  7. }
  8. func (w *Writer) WriteMultiBuffer(mb buf.MultiBuffer) error {
  9. return w.pipe.WriteMultiBuffer(mb)
  10. }
  11. func (w *Writer) Close() error {
  12. return w.pipe.Close()
  13. }
  14. func (w *Writer) CloseError() {
  15. w.pipe.CloseError()
  16. }