FifoDataFile: static_assert that structs are right size

This commit is contained in:
Michael Maltese 2017-04-25 17:43:37 -07:00
parent 6a6bfa0dbb
commit 82d0f6edb2
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ struct FileHeader
u32 texMemSize;
u8 reserved[40];
};
static_assert(sizeof(FileHeader) == 128, "FileHeader should be 128 bytes");
struct FileFrameInfo
{
@ -50,6 +51,7 @@ struct FileFrameInfo
u32 numMemoryUpdates;
u8 reserved[32];
};
static_assert(sizeof(FileFrameInfo) == 64, "FileFrameInfo should be 64 bytes");
struct FileMemoryUpdate
{
@ -60,6 +62,7 @@ struct FileMemoryUpdate
u8 type;
u8 reserved[3];
};
static_assert(sizeof(FileMemoryUpdate) == 24, "FileMemoryUpdate should be 24 bytes");
#pragma pack(pop)