Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxGCTime = time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
func NewBufferPool ¶
func NewBufferPool(initSize, maxSize int) *BufferPool
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() (buf *Buffer, fromPool bool)
func (*BufferPool) Put ¶
func (bp *BufferPool) Put(buf *Buffer, fromPool bool)
Click to show internal directories.
Click to hide internal directories.