bufferpool
import "github.com/fufuok/utils/pools/bufferpool"
Index
func Get
func Get() *bytes.Buffer
func New
func New(bs []byte) *bytes.Buffer
func NewByte
func NewByte(c byte) *bytes.Buffer
func NewRune
func NewRune(r rune) *bytes.Buffer
func NewString
func NewString(s string) *bytes.Buffer
func Put
func Put(buf *bytes.Buffer)
func Release
func Release(buf *bytes.Buffer) bool
func SetMaxSize
func SetMaxSize(size int) bool
SetMaxSize 设置回收时允许的最大字节 smallBufferSize is an initial allocation minimal capacity. const smallBufferSize = 64
Generated by gomarkdoc