MCPcopy Index your code
hub / github.com/rclone/rclone / Get

Method Get

lib/pool/pool.go:224–226  ·  view source on GitHub ↗

Get a buffer from the pool or allocate one

()

Source from the content-addressed store, hash-verified

222
223// Get a buffer from the pool or allocate one
224func (bp *Pool) Get() []byte {
225 return bp.GetN(1)[0]
226}
227
228// GetN get n buffers atomically from the pool or allocate them
229func (bp *Pool) GetN(n int) [][]byte {

Callers

nothing calls this directly

Calls 1

GetNMethod · 0.95

Tested by

no test coverage detected