mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 05:12:10 +00:00
d51e9d1b98
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. |
||
---|---|---|
.. | ||
backend_test.go | ||
backend.go | ||
cache.go | ||
dir.go | ||
file_test.go | ||
file.go | ||
testing.go |