openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
cachedtssource.h
Go to the documentation of this file.
1 #ifndef __lib_base_cachedtssource_h
2 #define __lib_base_cachedtssource_h
3 
4 #include <lib/base/itssource.h>
5 
6 class eCachedSource: public iTsSource
7 {
8  DECLARE_REF(eCachedSource);
9 public:
12 
13  // iTsSource
14  ssize_t read(off_t offset, void *buf, size_t count);
15  off_t length();
16  off_t offset();
17  int valid();
18  bool isStream() { return m_source->isStream(); };
19 private:
20  ePtr<iTsSource> m_source;
21  char* m_cache_buffer;
22  off_t m_cache_offset;
23  unsigned int m_cache_bytes;
24 };
25 
26 #endif
Definition: cachedtssource.h:7
eCachedSource(ePtr< iTsSource > &source)
Definition: cachedtssource.cpp:7
bool isStream()
Definition: cachedtssource.h:18
off_t length()
Definition: cachedtssource.cpp:47
off_t offset()
Definition: cachedtssource.cpp:52
~eCachedSource()
Definition: cachedtssource.cpp:16
int valid()
Definition: cachedtssource.cpp:42
ssize_t read(off_t offset, void *buf, size_t count)
Definition: cachedtssource.cpp:21
Definition: itssource.h:7
virtual bool isStream()
Definition: itssource.h:21
int count
Definition: newplugin.py:14
source
Definition: enigma_py_patcher.py:9