Add padding in HPKG/HPKR headers
... so that the different alignment on 32 and 64 bit machines doesn't change the layout.
This commit is contained in:
@@ -35,6 +35,7 @@ struct hpkg_header {
|
|||||||
uint32 attributes_length;
|
uint32 attributes_length;
|
||||||
uint32 attributes_strings_length;
|
uint32 attributes_strings_length;
|
||||||
uint32 attributes_strings_count;
|
uint32 attributes_strings_count;
|
||||||
|
uint32 reserved1;
|
||||||
|
|
||||||
// TOC section
|
// TOC section
|
||||||
uint64 toc_length;
|
uint64 toc_length;
|
||||||
@@ -58,6 +59,7 @@ struct hpkg_repo_header {
|
|||||||
|
|
||||||
// repository info section
|
// repository info section
|
||||||
uint32 info_length;
|
uint32 info_length;
|
||||||
|
uint32 reserved1;
|
||||||
|
|
||||||
// package attributes section
|
// package attributes section
|
||||||
uint64 packages_length;
|
uint64 packages_length;
|
||||||
|
|||||||
Reference in New Issue
Block a user