Package libprs500 :: Module prstypes :: Class FileOpen
[hide private]
[frames] | no frames]

Class FileOpen

source code


File open command

Instance Methods [hide private]
  __init__(self, path, mode=0x00)

Inherited from TransferBuffer: __add__, __getslice__, __str__, pack, unpack

Inherited from TransferBuffer (private): _normalize

Inherited from list: __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__


Class Methods [hide private]

Inherited from TransferBuffer: phex


Class Variables [hide private]
  NUMBER = 16
Command number
  READ = 0
Open file in read mode
  WRITE = 1
Open file in write mode
  path_length = An unsigned int stored in 4 bytes starting at byte 20
Length of the path to follow
  path = A string starting at byte 24
The path this query is about

Inherited from Command: length, number, type


Properties [hide private]
  mode
The file open mode.

Inherited from Command: data

Inherited from object: __class__


Method Details [hide private]

__init__(self, path, mode=0x00)
(Constructor)

source code 
None
Overrides: PathCommand.__init__

Class Variable Details [hide private]

NUMBER

Command number
Value:
16                                                                    
      

READ

Open file in read mode
Value:
0                                                                     
      

WRITE

Open file in write mode
Value:
1                                                                     
      

path_length

Length of the path to follow
Value:
An unsigned int stored in 4 bytes starting at byte 20                  
      

path

The path this query is about
Value:
A string starting at byte 24                                           
      

Property Details [hide private]

mode

The file open mode. Is either FileOpen.READ or FileOpen.WRITE. unsigned int stored at byte 16.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None