Files

29 lines
534 B
C++
Raw Permalink Normal View History

2025-05-13 02:46:21 +03:00
#ifndef IFSFILE_H__
#define IFSFILE_H__
//#include "IDataStream.h"
#include "../../LString.h"
#include "../IFile.h"
#include "IFSStream.h"
namespace LifeCore
{
class IFSFile : public IFile
{
public:
IFSFile();
IFSFile(const String& path, int size);
~IFSFile(){}
String EntryName;
bool ReadAsync(char* buffer, size_t count_read);
IDataStreamPtr OpenWrite(int mode);
IDataStreamPtr OpenReadWrite(int mode);
IDataStreamPtr OpenRead();
void Close();
private:
int offsetIndex;
IFSStream* g_stream;
};
}
#endif