I am currently working on a project that involves storing data in appvars. The structure of the data being stored in the appvar is as follows:
Code:
I know the offset for where the compressed image data begins, but I am wondering if there is a way to know how large this data is. This number cannot be hardcoded because the appvars will serve as level packs which will have different images in them.
This is using compressed images, so reading the first two bytes of the image (width and height) won't tell me how much data to read in. Correct me if I am wrong.
Code:
| identifier string for using ti_Detect() | compressed image data | more irrelevant data |
I know the offset for where the compressed image data begins, but I am wondering if there is a way to know how large this data is. This number cannot be hardcoded because the appvars will serve as level packs which will have different images in them.
This is using compressed images, so reading the first two bytes of the image (width and height) won't tell me how much data to read in. Correct me if I am wrong.