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

Function GetByteSlice

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

GetByteSlice retrieves a byte slice from the pool

()

Source from the content-addressed store, hash-verified

37
38// GetByteSlice retrieves a byte slice from the pool
39func GetByteSlice() *[]byte {
40 return ByteSlicePool.Get().(*[]byte)
41}
42
43// PutByteSlice returns a byte slice to the pool
44func PutByteSlice(b *[]byte) {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected