mirror of
https://github.com/restic/restic.git
synced 2026-01-03 05:29:40 -05:00
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. |
||
|---|---|---|
| .. | ||
| testdata | ||
| doc.go | ||
| index.go | ||
| index_test.go | ||
| key.go | ||
| master_index.go | ||
| master_index_test.go | ||
| packer_manager.go | ||
| packer_manager_test.go | ||
| pool.go | ||
| repack.go | ||
| repack_test.go | ||
| repository.go | ||
| repository_test.go | ||
| testing.go | ||
| worker_group.go | ||