2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 23:06:32 +00:00
restic/internal/cache
Alexander Neumann d51e9d1b98 Add []byte to repo.LoadAndDecrypt and utils.LoadAll
This commit changes the signatures for repository.LoadAndDecrypt and
utils.LoadAll to allow passing in a []byte as the buffer to use. This
buffer is enlarged as needed, and returned back to the caller for
further use.

In later commits, this allows reducing allocations by reusing a buffer
for multiple calls, e.g. in a worker function.
2019-04-13 13:38:39 +02:00
..
backend_test.go Add []byte to repo.LoadAndDecrypt and utils.LoadAll 2019-04-13 13:38:39 +02:00
backend.go cache: Fix recheck logic, remove channel from inProgress 2018-10-04 17:09:43 +02:00
cache.go cache: Print message when new cache is created 2018-08-29 22:01:10 +02:00
dir.go Fix error message on Windows 2018-11-11 14:06:32 +01:00
file_test.go cache: Fix test for new behavior 2018-08-11 23:11:51 +02:00
file.go cache: Don't return an error for truncated files 2018-11-25 14:18:02 +01:00
testing.go Add cache 2017-09-24 21:54:53 +02:00