hollyhock
Public Attributes | List of all members
stat Struct Reference

#include <file.hpp>

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
 

Detailed Description

Information about a file as retrieved from fstat or stat.

Dates and times are stored as a bitfield. The values they represent can be accessed using the statDateYear, statDateMonth, statDateDay, statTimeHour, statTimeMinute, and 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)

Member Data Documentation

◆ creationDate

uint16_t stat::creationDate

The creation date of the file. For information on the storage format, see struct stat.

◆ creationTime

uint16_t stat::creationTime

The creation time of the file. For information on the storage format, see struct stat.

◆ fileSize

uint32_t stat::fileSize

The size of the file, in bytes.

◆ lastAccessedDate

uint16_t stat::lastAccessedDate

The date the file was last accessed. For information on the storage format, see struct stat.

◆ lastModifiedDate

uint16_t stat::lastModifiedDate

The date the file was last modified. For information on the storage format, see struct stat.

◆ lastModifiedTime

uint16_t stat::lastModifiedTime

The time the file was last modified. For information on the storage format, see struct stat.


The documentation for this struct was generated from the following file: