pool

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SmallBufSize = 4096       // for IPC messages, small packets
	LargeBufSize = 65535 + 38 // max payload + tunnel magic(4) + header(34)
)

Packet buffers sized for typical tunnel frames.

Variables

This section is empty.

Functions

func GetLarge

func GetLarge() *[]byte

GetLarge returns a large buffer from the pool.

func GetSmall

func GetSmall() *[]byte

GetSmall returns a small buffer from the pool.

func PutLarge

func PutLarge(b *[]byte)

PutLarge returns a large buffer to the pool.

func PutSmall

func PutSmall(b *[]byte)

PutSmall returns a small buffer to the pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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