Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Flags to define way how file becomes opened
The values can be used together, e.g. file.Open("myfile", ADDON_READ_TRUNCATED | ADDON_READ_CHUNKED);

Used on kodi::vfs::CFile::OpenFile().

Enumeration Type Documentation

◆ OpenFileFlags

Enumerator
ADDON_READ_TRUNCATED 

0000 0000 0001 :
Indicate that caller can handle truncated reads, where function returns before entire buffer has been filled.

ADDON_READ_CHUNKED 

0000 0000 0010 :
Indicate that that caller support read in the minimum defined chunk size, this disables internal cache then.

ADDON_READ_CACHED 

0000 0000 0100 :
Use cache to access this file.

ADDON_READ_NO_CACHE 

0000 0000 1000 :
Open without caching. regardless to file type.

ADDON_READ_BITRATE 

0000 0001 0000 :
Calcuate bitrate for file while reading.

ADDON_READ_MULTI_STREAM 

0000 0010 0000 :
Indicate to the caller we will seek between multiple streams in the file frequently.

ADDON_READ_AUDIO_VIDEO 

0000 0100 0000 :
indicate to the caller file is audio and/or video (and e.g. may grow).

ADDON_READ_AFTER_WRITE 

0000 1000 0000 :
Indicate that caller will do write operations before reading.

ADDON_READ_REOPEN 

0001 0000 0000 :
Indicate that caller want to reopen a file if its already open.