MCPcopy
hub / github.com/rclone/rclone / AddChunk

Method AddChunk

backend/cache/storage_memory.go:59–61  ·  view source on GitHub ↗

AddChunk adds a new chunk of a cached object

(fp string, data []byte, offset int64)

Source from the content-addressed store, hash-verified

57
58// AddChunk adds a new chunk of a cached object
59func (m *Memory) AddChunk(fp string, data []byte, offset int64) error {
60 return m.AddChunkAhead(fp, data, offset, time.Second)
61}
62
63// AddChunkAhead adds a new chunk of a cached object
64func (m *Memory) AddChunkAhead(fp string, data []byte, offset int64, t time.Duration) error {

Callers 3

runMethod · 0.45
downloadMethod · 0.45
cacheReaderMethod · 0.45

Calls 1

AddChunkAheadMethod · 0.95

Tested by

no test coverage detected