bytespool

package module
v0.0.0-...-e58aabd Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 2 Imported by: 1

README

BytesPool

a concurrent memory pool for Go

GitHub Go Reference Go Report Card Go GitHub go.mod Go version (branch)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxBytesLen uint = 536870912 //512MB

MaxBytesLen is maximum bytes len to add to pool

View Source
var MaxPoolLen uint = 4294967296 //4GB

MaxPoolLen is maximum pool len

View Source
var MinBytesLen uint = 16

MinBytesLen is minimum bytes len to add to pool

Functions

func Len

func Len() uint

Len returns total pool bytes len

func Pull

func Pull(max uint) []byte

Pull return bytes[:max]

func Push

func Push(b []byte)

Push adds b to pull

Types

This section is empty.

Jump to

Keyboard shortcuts

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