package bpool

import "github.com/coder/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.12 (latest)
Published
Aug 9, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
1 month ago

Tools for package owners.