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