Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Cache information status
Used on kodi::vfs::CFile::IoControlGetCacheStatus() to get running cache status of proccessed stream.

The following table contains values that can be set with class CacheStatus :

Name Type Set call Get call
Number of bytes cached uint64_t SetForward GetForward
Maximum number of bytes per second unsigned int SetMaxRate GetMaxRate
Average read rate from source file unsigned int SetCurrentRate GetCurrentRate
Cache low speed condition detected bool SetLowspeed GetLowspeed

Modules

 Value Help
 

Function Documentation

◆ SetForward()

void SetForward ( uint64_t  forward)
inline

Set number of bytes cached forward of current position.

◆ GetForward()

uint64_t GetForward ( )
inline

Get number of bytes cached forward of current position.

◆ SetMaxRate()

void SetMaxRate ( unsigned int  maxrate)
inline

Set maximum number of bytes per second cache is allowed to fill.

◆ GetMaxRate()

unsigned int GetMaxRate ( )
inline

Set maximum number of bytes per second cache is allowed to fill.

◆ SetCurrentRate()

void SetCurrentRate ( unsigned int  currate)
inline

Set average read rate from source file since last position change.

◆ GetCurrentRate()

unsigned int GetCurrentRate ( )
inline

Get average read rate from source file since last position change.

◆ SetLowspeed()

void SetLowspeed ( bool  lowspeed)
inline

Set cache low speed condition detected.

◆ GetLowspeed()

bool GetLowspeed ( )
inline

Get cache low speed condition detected.