Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.

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); More...

Typedefs

typedef enum OpenFileFlags OpenFileFlags
 

Enumerations

enum  OpenFileFlags {
  ADDON_READ_TRUNCATED = 0x01 , ADDON_READ_CHUNKED = 0x02 , ADDON_READ_CACHED = 0x04 , ADDON_READ_NO_CACHE = 0x08 ,
  ADDON_READ_BITRATE = 0x10 , ADDON_READ_MULTI_STREAM = 0x20 , ADDON_READ_AUDIO_VIDEO = 0x40 , ADDON_READ_AFTER_WRITE = 0x80 ,
  ADDON_READ_REOPEN = 0x100
}
 

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().

Typedef Documentation

◆ OpenFileFlags

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 :
Calculate 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.