Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBufReader ¶ added in v0.12.2
GetBufReader returns a *bufio.Reader from pool.
func GetBuffer ¶
GetBuffer gets a buffer from pool, size should in range: [1, 65536], otherwise, this function will call make([]byte, size) directly.
func GetBytesBuffer ¶ added in v0.12.2
GetBytesBuffer returns a bytes.buffer from pool.
func PutBufReader ¶ added in v0.12.2
PutBufReader puts a *bufio.Reader into pool.
func PutBytesBuffer ¶ added in v0.12.2
PutBytesBuffer puts a bytes.buffer into pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.