FFL
Loading...
Searching...
No Matches
FFLiFsFile.h
Go to the documentation of this file.
1#ifndef FFLI_FS_FILE_H_
2#define FFLI_FS_FILE_H_
3
4#include <nn/ffl/types.h>
5
6#include <cafe/fs.h>
7
8class FFLiFsCommand;
9
11{
12public:
13 FFLiFsFile(FFLiFsCommand* pCommand);
14 ~FFLiFsFile();
15
16 FSStatus Open(const char* path, const char* mode, FSRetFlag errHandling = FS_RET_NO_ERROR);
17 FSStatus Close(FSRetFlag errHandling = FS_RET_NO_ERROR);
18
19 FSStatus Read(void* dst, u32 size, u32 count, FSRetFlag errHandling = FS_RET_NO_ERROR, FSFlag flag = 0);
20 FSStatus ReadWithPos(void* dst, u32 size, u32 count, u32 pos, FSRetFlag errHandling = FS_RET_NO_ERROR, FSFlag flag = 0);
21
22 FSStatus Write(const void* src, u32 size, u32 count, FSRetFlag errHandling = FS_RET_NO_ERROR, FSFlag flag = 0);
23
24 bool IsOpened() const;
25
26 static FSStatus FlushQuota(FFLiFsCommand* pCommand, const char* path, FSRetFlag errHandling = FS_RET_NO_ERROR);
27
28private:
31};
33
34#endif // FFLI_FS_FILE_H_
NN_STATIC_ASSERT(sizeof(FFLiAllocator)==4)
Definition FFLiFsCommand.h:23
Definition FFLiFsFile.h:11
FSStatus Open(const char *path, const char *mode, FSRetFlag errHandling=FS_RET_NO_ERROR)
Definition FFLiFsFile.cpp:15
FFLiFsCommand * m_pFsCommand
Definition FFLiFsFile.h:29
FSStatus Read(void *dst, u32 size, u32 count, FSRetFlag errHandling=FS_RET_NO_ERROR, FSFlag flag=0)
Definition FFLiFsFile.cpp:30
FSStatus Write(const void *src, u32 size, u32 count, FSRetFlag errHandling=FS_RET_NO_ERROR, FSFlag flag=0)
Definition FFLiFsFile.cpp:40
FSFileHandle m_Handle
Definition FFLiFsFile.h:30
FFLiFsFile(FFLiFsCommand *pCommand)
Definition FFLiFsFile.cpp:5
FSStatus ReadWithPos(void *dst, u32 size, u32 count, u32 pos, FSRetFlag errHandling=FS_RET_NO_ERROR, FSFlag flag=0)
Definition FFLiFsFile.cpp:35
static FSStatus FlushQuota(FFLiFsCommand *pCommand, const char *path, FSRetFlag errHandling=FS_RET_NO_ERROR)
Definition FFLiFsFile.cpp:50
bool IsOpened() const
Definition FFLiFsFile.cpp:45
FSStatus Close(FSRetFlag errHandling=FS_RET_NO_ERROR)
Definition FFLiFsFile.cpp:20
~FFLiFsFile()
Definition FFLiFsFile.cpp:11