-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I have created an XISF reader for the ASTAP program written in Object Pascal. I noted that there is no pre-defined definition how long the header is or maybe I missed it. In practice for uncompressed files it is $1000 equals 4096 bytes. After the XML part the file is filled with unused zero's De attached data block starts then at $1000 or probably later if the header is larger. There is no unused space if the file contains a compressed datablock.
For efficient file reading and to avoid file "seek" is would be convenient to define an initial length of the header to read the first information. So the file reader knows how many bytes to read initially.
I haven't studied the original code. Maybe it reads all data in one array at once, but the current start position for data at $1000 indicates it is not.