trireme-lib: go.aporeto.io/trireme-lib/controller/pkg/bufferpool Index | Files

package bufferpool

import "go.aporeto.io/trireme-lib/controller/pkg/bufferpool"

Index

Package Files

bufferpool.go

type BufferPool Uses

type BufferPool struct {
    // contains filtered or unexported fields
}

BufferPool implements the interface of httputil.BufferPool in order to improve memory utilization in the reverse proxy.

func NewPool Uses

func NewPool(size int) *BufferPool

NewPool creates a new BufferPool.

func (*BufferPool) Get Uses

func (b *BufferPool) Get() []byte

Get gets a buffer from the pool.

func (*BufferPool) Put Uses

func (b *BufferPool) Put(buf []byte)

Put returns the buffer to the pool.

Package bufferpool imports 1 packages (graph) and is imported by 1 packages. Updated 2019-09-03. Refresh now. Tools for package owners.