MCPcopy
hub / github.com/mochi-mqtt/server / BufferPool

Interface BufferPool

mempool/bufpool.go:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14func PutBuffer(x *bytes.Buffer) { bufPool.Put(x) }
15
16type BufferPool interface {
17 Get() *bytes.Buffer
18 Put(x *bytes.Buffer)
19}
20
21// NewBuffer returns a buffer pool. The max specify the max capacity of the Buffer the pool will
22// return. If the Buffer becoomes large than max, it will no longer be returned to the pool. If

Callers 12

clients_test.goFile · 0.65
AddListenerMethod · 0.65
inheritClientSessionMethod · 0.65
PutBufferFunction · 0.65
PutMethod · 0.65
PutMethod · 0.65
setKvMethod · 0.65

Implementers 2

Buffermempool/bufpool.go
BufferWithCapmempool/bufpool.go

Calls

no outgoing calls

Tested by

no test coverage detected