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

Function Put

internal/bpool/bpool.go:22–25  ·  view source on GitHub ↗

Put returns a buffer into the pool.

(b *bytes.Buffer)

Source from the content-addressed store, hash-verified

20
21// Put returns a buffer into the pool.
22func Put(b *bytes.Buffer) {
23 b.Reset()
24 bpool.Put(b)
25}

Callers 3

CloseMethod · 0.92
writeCompressedFrameMethod · 0.92
readFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected