mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-08 02:16:28 -05:00
16 lines
315 B
Go
16 lines
315 B
Go
|
// Package bufio is a replacement of the standard golang package bufio.
|
||
|
package bufio
|
||
|
|
||
|
import (
|
||
|
"bufio"
|
||
|
"io"
|
||
|
)
|
||
|
|
||
|
func OriginalReader(reader io.Reader) *bufio.Reader {
|
||
|
return bufio.NewReader(reader)
|
||
|
}
|
||
|
|
||
|
func OriginalReaderSize(reader io.Reader, size int) *bufio.Reader {
|
||
|
return bufio.NewReaderSize(reader, size)
|
||
|
}
|