kodi
Public Member Functions | Protected Attributes | List of all members
XFILE::CDoubleCache Class Reference
Inheritance diagram for XFILE::CDoubleCache:
Inheritance graph
[legend]
Collaboration diagram for XFILE::CDoubleCache:
Collaboration graph
[legend]

Public Member Functions

 CDoubleCache (CCacheStrategy *impl)
 
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
 
bool IsEndOfInput () override
 
void ClearEndOfInput () override
 
int64_t CachedDataEndPosIfSeekTo (int64_t iFilePosition) override
 
int64_t CachedDataStartPos () override
 
int64_t CachedDataEndPos () override
 
bool IsCachedPosition (int64_t iFilePosition) override
 
CCacheStrategyCreateNew () override
 

Protected Attributes

CCacheStrategym_pCache
 
CCacheStrategym_pCacheOld
 
- Protected Attributes inherited from XFILE::CCacheStrategy
bool m_bEndOfInput = false
 

Additional Inherited Members

- Public Attributes inherited from XFILE::CCacheStrategy
CEvent m_space
 

Member Function Documentation

◆ Reset()

bool CDoubleCache::Reset ( int64_t  iSourcePosition)
overridevirtual

Reset cache position.

Parameters
iSourcePositionposition 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: