libdragon
|
Open file handle structure. More...
#include <dfsinternal.h>
Data Fields | |
file_entry_t | cur_sector |
Cached copy of the current sector. | |
file_entry_t * | start_sector |
Pointer to the first sector. | |
uint32_t | handle |
The unique file handle to refer to this file by. | |
uint32_t | size |
The size in bytes of this file. | |
uint32_t | loc |
The offset of the current location in the file. | |
uint32_t | sector_number |
The sector number of the current sector. | |
uint8_t | padding [236] |
Padding. |
Open file handle structure.
uint8_t open_file::padding[236] |
Padding.
If this isn't here, the second file opened will fail due to cur_sector not being on a 8 byte aligned boundary, so I just aligned it to 512 bytes.