|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
Kodi's file class. More...
Classes | |
| class | XBMCAddon::xbmcvfs::File |
Functions | |
| XBMCAddon::xbmcvfs::File::File (const String &filepath, const char *mode=NULL) | |
| XBMCAddon::xbmcvfs::File::~File () override | |
| XBMCAddon::xbmcvfs::File::read (...) | |
| |
| XBMCAddon::xbmcvfs::File::readBytes (...) | |
| |
| XBMCAddon::xbmcvfs::File::write (...) | |
| |
| XBMCAddon::xbmcvfs::File::size () | |
| |
| XBMCAddon::xbmcvfs::File::seek (...) | |
| |
| XBMCAddon::xbmcvfs::File::tell () | |
| |
| XBMCAddon::xbmcvfs::File::close () | |
| |
| const XFILE::CFile * | XBMCAddon::xbmcvfs::File::getFile () const |
Kodi's file class.
Class: xbmcvfs.File(filepath, [mode]) | filepath | string Selected file path | ||||
| mode | [opt] string Additional mode options (if no mode is supplied, the default is Open for Read).
|
Example:
Example (v19 and up):
| XBMCAddon::xbmcvfs::File::close | ( | ) |
Function: close() Example:
Example (v19 and up):
|
inline |
| XBMCAddon::xbmcvfs::File::read | ( | ... | ) |
Function: read([bytes]) | bytes | [opt] How many bytes to read - if not set it will read the whole file |
Example:
Example (v19 and up):
| XbmcCommons::Buffer XBMCAddon::xbmcvfs::File::readBytes | ( | ... | ) |
Function: readBytes(numbytes) | numbytes | How many bytes to read [opt]- if not set it will read the whole file |
Example:
Example (v19 and up):
| XBMCAddon::xbmcvfs::File::seek | ( | ... | ) |
Function: seek(seekBytes, iWhence) | seekBytes | position in the file |
| iWhence | [opt] where in a file to seek from[0 beginning, 1 current , 2 end position] |
Example:
Example (v19 and up):
| XBMCAddon::xbmcvfs::File::size | ( | ) |
Function: size() Example:
Example (v19 and up):
| XBMCAddon::xbmcvfs::File::tell | ( | ) |
Function: tell() Example:
Example (v19 and up):
| bool XBMCAddon::xbmcvfs::File::write | ( | ... | ) |
Function: write(buffer) | buffer | Buffer to write to file |
Example:
Example (v19 and up):
|
inlineoverride |