MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / GetBuffer

Function GetBuffer

agent-source-code/internal/bufpool/bufpool.go:18–20  ·  view source on GitHub ↗

GetBuffer retrieves a buffer from the pool

()

Source from the content-addressed store, hash-verified

16
17// GetBuffer retrieves a buffer from the pool
18func GetBuffer() *bytes.Buffer {
19 return BufferPool.Get().(*bytes.Buffer)
20}
21
22// PutBuffer returns a buffer to the pool after resetting it
23func PutBuffer(buf *bytes.Buffer) {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected