mirror of https://github.com/cbeuw/Cloak
writerTo
This commit is contained in:
parent
21cbe6ab5d
commit
a82a1a5627
|
|
@ -13,6 +13,7 @@ package multiplex
|
|||
import (
|
||||
"container/heap"
|
||||
"fmt"
|
||||
"io"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
|
@ -96,6 +97,10 @@ func (sb *streamBuffer) Read(buf []byte) (int, error) {
|
|||
return sb.buf.Read(buf)
|
||||
}
|
||||
|
||||
func (sb *streamBuffer) WriteTo(w io.Writer) (int64, error) {
|
||||
return sb.buf.WriteTo(w)
|
||||
}
|
||||
|
||||
func (sb *streamBuffer) Close() error {
|
||||
return sb.buf.Close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue