#include <CacheStrategy.h>
◆ CSimpleFileCache()
CSimpleFileCache::CSimpleFileCache |
( |
| ) |
|
◆ ~CSimpleFileCache()
CSimpleFileCache::~CSimpleFileCache |
( |
| ) |
|
|
override |
◆ CachedDataEndPos()
int64_t CSimpleFileCache::CachedDataEndPos |
( |
| ) |
|
|
overridevirtual |
◆ CachedDataEndPosIfSeekTo()
int64_t CSimpleFileCache::CachedDataEndPosIfSeekTo |
( |
int64_t | iFilePosition | ) |
|
|
overridevirtual |
◆ CachedDataStartPos()
int64_t CSimpleFileCache::CachedDataStartPos |
( |
| ) |
|
|
overridevirtual |
◆ Close()
void CSimpleFileCache::Close |
( |
| ) |
|
|
overridevirtual |
◆ CreateNew()
◆ EndOfInput()
void CSimpleFileCache::EndOfInput |
( |
| ) |
|
|
overridevirtual |
◆ GetAvailableRead()
int64_t CSimpleFileCache::GetAvailableRead |
( |
| ) |
|
◆ GetMaxWriteSize()
size_t CSimpleFileCache::GetMaxWriteSize |
( |
const size_t & | iRequestSize | ) |
|
|
overridevirtual |
◆ IsCachedPosition()
bool CSimpleFileCache::IsCachedPosition |
( |
int64_t | iFilePosition | ) |
|
|
overridevirtual |
◆ Open()
int CSimpleFileCache::Open |
( |
| ) |
|
|
overridevirtual |
◆ ReadFromCache()
int CSimpleFileCache::ReadFromCache |
( |
char * | pBuffer, |
|
|
size_t | iMaxSize ) |
|
overridevirtual |
◆ Reset()
bool CSimpleFileCache::Reset |
( |
int64_t | iSourcePosition | ) |
|
|
overridevirtual |
Reset cache position.
- Parameters
-
iSourcePosition | position to reset to |
- Returns
- Whether a full reset was performed, or not (e.g. only cache swap)
- See also
- CCacheStrategy
Implements XFILE::CCacheStrategy.
◆ Seek()
◆ WaitForData()
int64_t CSimpleFileCache::WaitForData |
( |
uint32_t | iMinAvail, |
|
|
std::chrono::milliseconds | timeout ) |
|
overridevirtual |
◆ WriteToCache()
int CSimpleFileCache::WriteToCache |
( |
const char * | pBuffer, |
|
|
size_t | iSize ) |
|
overridevirtual |
◆ m_cacheFileRead
IFile* XFILE::CSimpleFileCache::m_cacheFileRead |
|
protected |
◆ m_cacheFileWrite
IFile* XFILE::CSimpleFileCache::m_cacheFileWrite |
|
protected |
◆ m_filename
std::string XFILE::CSimpleFileCache::m_filename |
|
protected |
◆ m_hDataAvailEvent
CEvent* XFILE::CSimpleFileCache::m_hDataAvailEvent |
|
protected |
◆ m_nReadPosition
int64_t XFILE::CSimpleFileCache::m_nReadPosition = 0 |
|
protected |
◆ m_nStartPosition
int64_t XFILE::CSimpleFileCache::m_nStartPosition = 0 |
|
protected |
◆ m_nWritePosition
int64_t XFILE::CSimpleFileCache::m_nWritePosition = 0 |
|
protected |
The documentation for this class was generated from the following files: