1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-06 17:36:40 -05:00
v2fly/common/bufio/bufio.go

18 lines
471 B
Go
Raw Normal View History

2016-12-09 07:17:34 -05:00
// Package bufio is a replacement of the standard golang package bufio.
package bufio
import (
"bufio"
"io"
)
2016-12-11 20:14:48 -05:00
// OriginalReader invokes bufio.NewReader() from Golang standard library.
2016-12-09 07:17:34 -05:00
func OriginalReader(reader io.Reader) *bufio.Reader {
return bufio.NewReader(reader)
}
2016-12-11 20:14:48 -05:00
// OriginalReaderSize invokes bufio.NewReaderSize() from Golang standard library.
2016-12-09 07:17:34 -05:00
func OriginalReaderSize(reader io.Reader, size int) *bufio.Reader {
return bufio.NewReaderSize(reader, size)
}