mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
comments
This commit is contained in:
parent
de4072a65a
commit
e7345f079e
@ -128,10 +128,12 @@ func (r *BufferedReader) Close() error {
|
|||||||
return common.Close(r.Reader)
|
return common.Close(r.Reader)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SingleReader is a Reader that read one Buffer every time.
|
||||||
type SingleReader struct {
|
type SingleReader struct {
|
||||||
io.Reader
|
io.Reader
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReadMultiBuffer implements Reader.
|
||||||
func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) {
|
func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) {
|
||||||
b, err := readOne(r.Reader)
|
b, err := readOne(r.Reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user