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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址