|
int | Open () override |
|
void | Close () override |
|
size_t | GetMaxWriteSize (const size_t &iRequestSize) override |
|
int | WriteToCache (const char *pBuffer, size_t iSize) override |
|
int | ReadFromCache (char *pBuffer, size_t iMaxSize) override |
|
int64_t | WaitForData (uint32_t iMinAvail, std::chrono::milliseconds timeout) override |
|
int64_t | Seek (int64_t iFilePosition) override |
|
bool | Reset (int64_t iSourcePosition) override |
| Reset cache position. More...
|
|
void | EndOfInput () override |
|
int64_t | CachedDataEndPosIfSeekTo (int64_t iFilePosition) override |
|
int64_t | CachedDataStartPos () override |
|
int64_t | CachedDataEndPos () override |
|
bool | IsCachedPosition (int64_t iFilePosition) override |
|
CCacheStrategy * | CreateNew () override |
|
int64_t | GetAvailableRead () |
|
virtual bool | IsEndOfInput () |
|
virtual void | ClearEndOfInput () |
|
|
std::string | m_filename |
|
IFile * | m_cacheFileRead |
|
IFile * | m_cacheFileWrite |
|
CEvent * | m_hDataAvailEvent |
|
volatile int64_t | m_nStartPosition = 0 |
|
volatile int64_t | m_nWritePosition = 0 |
|
volatile int64_t | m_nReadPosition = 0 |
|
bool | m_bEndOfInput = false |
|
◆ 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.
The documentation for this class was generated from the following files: