1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00
This commit is contained in:
Darien Raymond 2018-10-24 15:02:19 +02:00
parent de4072a65a
commit e7345f079e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -128,10 +128,12 @@ func (r *BufferedReader) Close() error {
return common.Close(r.Reader)
}
// SingleReader is a Reader that read one Buffer every time.
type SingleReader struct {
io.Reader
}
// ReadMultiBuffer implements Reader.
func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) {
b, err := readOne(r.Reader)
if err != nil {