mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Add FS::FileSeek method with whence
This commit is contained in:
parent
3556687e2e
commit
9bc75c5d3c
|
@ -70,7 +70,11 @@ int FS::FileWrite(lfs_file_t* file_p, const uint8_t* buff, uint32_t size) {
|
|||
}
|
||||
|
||||
int FS::FileSeek(lfs_file_t* file_p, uint32_t pos) {
|
||||
return lfs_file_seek(&lfs, file_p, pos, LFS_SEEK_SET);
|
||||
return FileSeek(file_p, pos, LFS_SEEK_SET);
|
||||
}
|
||||
|
||||
int FS::FileSeek(lfs_file_t* file_p, uint32_t pos, int whence) {
|
||||
return lfs_file_seek(&lfs, file_p, pos, whence);
|
||||
}
|
||||
|
||||
int FS::FileDelete(const char* fileName) {
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace Pinetime {
|
|||
int FileRead(lfs_file_t* file_p, uint8_t* buff, uint32_t size);
|
||||
int FileWrite(lfs_file_t* file_p, const uint8_t* buff, uint32_t size);
|
||||
int FileSeek(lfs_file_t* file_p, uint32_t pos);
|
||||
int FileSeek(lfs_file_t* file_p, uint32_t pos, int whence);
|
||||
|
||||
int FileDelete(const char* fileName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue