MCPcopy
hub / github.com/rclone/rclone / getBlock

Method getBlock

backend/crypt/cipher.go:255–257  ·  view source on GitHub ↗

getBlock gets a block from the pool of size blockSize

()

Source from the content-addressed store, hash-verified

253
254// getBlock gets a block from the pool of size blockSize
255func (c *Cipher) getBlock() *[blockSize]byte {
256 return c.buffers.Get().(*[blockSize]byte)
257}
258
259// putBlock returns a block to the pool of size blockSize
260func (c *Cipher) putBlock(buf *[blockSize]byte) {

Callers 4

newEncrypterMethod · 0.95
newDecrypterMethod · 0.95
TestPutGetBlockFunction · 0.80
unFinishMethod · 0.80

Calls 1

GetMethod · 0.65

Tested by 1

TestPutGetBlockFunction · 0.64