trireme-lib: Index | Files

package bufferpool

import ""


Package Files


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 2 packages. Updated 2019-09-03. Refresh now. Tools for package owners.