Reordered struct for better memory alignment
This commit is contained in:
parent
7e630e3e68
commit
85ee7ee10d
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
|
|
||||||
struct img_png_chunk {
|
struct img_png_chunk {
|
||||||
uint32_t length;
|
|
||||||
char chunk_type[4];
|
|
||||||
char* chunk_data;
|
char* chunk_data;
|
||||||
|
uint32_t length;
|
||||||
uint32_t crc;
|
uint32_t crc;
|
||||||
|
char chunk_type[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
uint8_t* img_png_decode (FILE* fp);
|
uint8_t* img_png_decode (FILE* fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user