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/nsv/nsvplay/IDataReader.h

21 lines
558 B
C
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
#ifndef NULLSOFT_NSV_NSVPLAY_IDATAREADER_H
#define NULLSOFT_NSV_NSVPLAY_IDATAREADER_H
#include <stddef.h>
#include <bfc/platform/types.h>
class IDataReader
{
public:
virtual ~IDataReader() { }
virtual size_t read(char *buf, size_t len)=0; // returns bytes read
virtual bool iseof()=0;
virtual char *geterror()=0;
virtual char *gettitle() { return 0; }
virtual char *getheader(char *header_name) { return 0; }
virtual bool canseek() { return 0; }
virtual int seek(uint64_t newpos) { return 1; }
virtual uint64_t getsize() { return ~0; }
};
#endif