|
|
|
|
|
by purple-leafy
538 days ago
|
|
But C/ C-compilers don't guarantee your struct wont have holes (by default), so you may have to do something like __attribute__((packed)) to ensure they are packed structs: struct bitmap_file_header
{
UWord signature;
UDWord file_size;
UWord reserved_1;
UWord reserved_2;
UDWord file_offset_to_pixel_array;
} __attribute__((packed));
|
|