bytespool

package
v0.0.0-...-d853fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBufferCap = 16 * 1024 * 1024 //16M
	MinBufferCap = 128              //128 byte

)

Variables

This section is empty.

Functions

func CalcBufferCapKey

func CalcBufferCapKey(len uint32) uint32

func Put

func Put(bs *Bytes)

Types

type Bytes

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

func Get

func Get(len uint32) *Bytes

func (*Bytes) Bytes

func (bs *Bytes) Bytes() []byte

Jump to

Keyboard shortcuts

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