Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
34
Src/filereader/ResourceReader.h
Normal file
34
Src/filereader/ResourceReader.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef NULLSOFT_RESOURCEREADER_H
|
||||
#define NULLSOFT_RESOURCEREADER_H
|
||||
|
||||
#include <api/service/svcs/svc_fileread.h>
|
||||
class ResourceReader : public svc_fileReader
|
||||
{
|
||||
public:
|
||||
public:
|
||||
ResourceReader();
|
||||
virtual ~ResourceReader() { close(); }
|
||||
|
||||
int open(const wchar_t *filename, int mode=SvcFileReader::READ);
|
||||
|
||||
size_t read(__int8 *buffer, size_t length);
|
||||
size_t write(const __int8 *buffer, size_t length);
|
||||
void close();
|
||||
unsigned __int64 getPos();
|
||||
unsigned __int64 getLength();
|
||||
int canSeek();
|
||||
int seek(unsigned __int64 position);
|
||||
int exists(const wchar_t *filename);
|
||||
/*int remove(const char *filename) { return 0; }
|
||||
int move(const char *filename, const char *destfilename) { return 0; }*/
|
||||
protected:
|
||||
RECVS_DISPATCH;
|
||||
private:
|
||||
__int8 *data;
|
||||
size_t ptr;
|
||||
size_t size;
|
||||
HGLOBAL g;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue