blob: 91167ff599573b1b29c6795cafc1b6d0ffe75712 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef __lib_base_idatasource_h
#define __lib_base_idatasource_h
#include <lib/base/object.h>
class iTsSource: public iObject
{
public:
/* NOTE: should only be used to get current position or filelength */
virtual off_t lseek(off_t offset, int whence)=0;
/* NOTE: you must be able to handle short reads! */
virtual ssize_t read(off_t offset, void *buf, size_t count)=0; /* NOTE: this is what you in normal case have to use!! */
virtual off_t length()=0;
virtual int valid()=0;
};
#endif
|