Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/filereader/ResourceReader.h

34 lines
809 B
C
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
#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