MythTV  master
Public Member Functions | Public Attributes | List of all members
xbmcvfs.File Class Reference
Inheritance diagram for xbmcvfs.File:
[legend]

Public Member Functions

None __init__ (self, str filepath, Optional[str] mode=None)
 
'File__enter__ (self)
 
def __exit__ (self, exc_type, exc_val, exc_tb)
 
str read (self, int numBytes=0)
 
bytearray readBytes (self, int numBytes=0)
 
bool write (self, Union[str, bytes, bytearray] buffer)
 
int size (self)
 
int seek (self, int seekBytes, int iWhence=0)
 
int tell (self)
 
None close (self)
 

Public Attributes

 filename
 
 fh
 

Detailed Description

Definition at line 10 of file xbmcvfs.py.

Constructor & Destructor Documentation

◆ __init__()

None xbmcvfs.File.__init__ (   self,
str  filepath,
Optional[str]   mode = None 
)

Definition at line 12 of file xbmcvfs.py.

Member Function Documentation

◆ __enter__()

'File' xbmcvfs.File.__enter__ (   self)

Definition at line 19 of file xbmcvfs.py.

◆ __exit__()

def xbmcvfs.File.__exit__ (   self,
  exc_type,
  exc_val,
  exc_tb 
)

Definition at line 22 of file xbmcvfs.py.

◆ read()

str xbmcvfs.File.read (   self,
int   numBytes = 0 
)

Definition at line 25 of file xbmcvfs.py.

Referenced by xbmcvfs.File.readBytes().

◆ readBytes()

bytearray xbmcvfs.File.readBytes (   self,
int   numBytes = 0 
)

Definition at line 30 of file xbmcvfs.py.

Referenced by embedlrc.BinaryFile.read().

◆ write()

bool xbmcvfs.File.write (   self,
Union[str, bytes, bytearray]  buffer 
)

Definition at line 35 of file xbmcvfs.py.

◆ size()

int xbmcvfs.File.size (   self)

Definition at line 38 of file xbmcvfs.py.

◆ seek()

int xbmcvfs.File.seek (   self,
int  seekBytes,
int   iWhence = 0 
)

Definition at line 41 of file xbmcvfs.py.

◆ tell()

int xbmcvfs.File.tell (   self)

Definition at line 44 of file xbmcvfs.py.

◆ close()

None xbmcvfs.File.close (   self)

Definition at line 47 of file xbmcvfs.py.

Member Data Documentation

◆ filename

xbmcvfs.File.filename

Definition at line 13 of file xbmcvfs.py.

◆ fh

xbmcvfs.File.fh

The documentation for this class was generated from the following file: