websocketnhooyr.io/websocket/internal/bpool Index | Files

package bpool

import "nhooyr.io/websocket/internal/bpool"

Index

Functions

func Get

func Get() *bytes.Buffer

Get returns a buffer from the pool or creates a new one if the pool is empty.

func Put

func Put(b *bytes.Buffer)

Put returns a buffer into the pool.

Source Files

bpool.go

Version
v1.8.17 (latest)
Published
Aug 10, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
1 hour ago

Tools for package owners.