MCPcopy Index your code
hub / github.com/go-git/go-git / PutByteSlice

Function PutByteSlice

utils/sync/bytes.go:33–35  ·  view source on GitHub ↗

PutByteSlice puts buf back into its sync.Pool.

(buf *[]byte)

Source from the content-addressed store, hash-verified

31
32// PutByteSlice puts buf back into its sync.Pool.
33func PutByteSlice(buf *[]byte) {
34 byteSlice.Put(buf)
35}
36
37// GetBytesBuffer returns a *bytes.Buffer that is managed by a sync.Pool.
38// Returns a buffer that is reset and ready for use.

Callers 7

checkoutFileMethod · 0.92
copyObjectMethod · 0.92
CloseMethod · 0.92
ApplyDeltaFunction · 0.92
patchDeltaWriterFunction · 0.92
TestGetAndPutByteSliceFunction · 0.85
PutZlibReaderFunction · 0.85

Calls 1

PutMethod · 0.65

Tested by 1

TestGetAndPutByteSliceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…