bpool

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 1 Imported by: 1

README

bpool

Pool of byte buffers. Based on sync.Pool.

Documentation

Overview

Pool of byte buffers. Based on sync.Pool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct{ B []byte }

type Pool

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

func (*Pool) Get

func (p *Pool) Get(capacity int) *Buffer

func (*Pool) Put

func (p *Pool) Put(buf *Buffer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL