|
hollyhock
|
#include <file.h>
Public Attributes | |
| uint32_t | unknown1 |
| uint32_t | fileSize |
| uint16_t | creationDate |
| uint16_t | creationTime |
| uint16_t | lastModifiedDate |
| uint16_t | lastModifiedTime |
| uint16_t | unknown2 |
| uint16_t | lastAccessedDate |
Information about a file as retrieved from File_Fstat or File_Stat.
Dates and times are stored as a bitfield. The values they represent can be accessed using the File_StatDateYear, File_StatDateMonth, File_StatDateDay, File_StatTimeHour, File_StatTimeMinute, and File_StatTimeSecond helper functions.
Dates are stored in the following format:
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Value | Year - 1980 | Month (indexed from 1) | Day (indexed from 1) | |||||||||||||
Times are stored in the following format:
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Value | Hour | Minute | Second (divided by two, rounded down) | |||||||||||||
| uint16_t File_Stat::creationDate |
The creation date of the file. For information on the storage format, see struct stat.
| uint16_t File_Stat::creationTime |
The creation time of the file. For information on the storage format, see struct stat.
| uint32_t File_Stat::fileSize |
The size of the file, in bytes.
| uint16_t File_Stat::lastAccessedDate |
The date the file was last accessed. For information on the storage format, see struct stat.
| uint16_t File_Stat::lastModifiedDate |
The date the file was last modified. For information on the storage format, see struct stat.
| uint16_t File_Stat::lastModifiedTime |
The time the file was last modified. For information on the storage format, see struct stat.