MCPcopy
hub / github.com/coder/websocket / Get

Function Get

internal/bpool/bpool.go:16–19  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

14// Get returns a buffer from the pool or creates a new one if
15// the pool is empty.
16func Get() *bytes.Buffer {
17 b := bpool.Get()
18 return b.(*bytes.Buffer)
19}
20
21// Put returns a buffer into the pool.
22func Put(b *bytes.Buffer) {

Callers 3

WriterMethod · 0.92
writeCompressedFrameMethod · 0.92
readFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected