pack: slightly expand testing of compressed blobs

This commit is contained in:
Michael Eischer committed 2022-04-30 11:34:10 +02:00
1 parent ec2b25565a
commit bcab548617
2 files changed
+49 -9

No files matched your search

+12 -4
View File
@@ -54,10 +54,18 @@ var plainEntrySize = uint(binary.Size(restic.BlobType(0)) + headerLengthSize + l
// headerEntry describes the format of header entries. It serves only as
// documentation.
type headerEntry struct {
Type uint8
Length uint32
ID restic.ID
CompressedLength uint32
Type uint8
Length uint32
ID restic.ID
}
// compressedHeaderEntry describes the format of header entries for compressed blobs.
// It serves only as documentation.
type compressedHeaderEntry struct {
Type uint8
Length uint32
UncompressedLength uint32
ID restic.ID
}
// Finalize writes the header for all added blobs and finalizes the pack.