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

Class FileRead

source code


Command to read from an open file

Instance Methods [hide private]
  __init__(self, id, offset, size)

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 = 22
Command number to read from a file

Properties [hide private]
  id
The file ID returned by a FileOpen command.
  offset
offset in the file at which to read.
  size
The number of bytes to read.

Inherited from Command: data, length, number, type

Inherited from object: __class__


Method Details [hide private]

__init__(self, id, offset, size)
(Constructor)

source code 
Parameters:
  • id (unsigned int) - File identifier returned by a FileOpen command
  • offset (unsigned long long) - Position in file at which to read
  • size (unsigned int) - number of bytes to read
Overrides: Command.__init__

Class Variable Details [hide private]

NUMBER

Command number to read from a file
Value:
22                                                                    
      

Property Details [hide private]

id

The file ID returned by a FileOpen command. unsigned int stored in 4 bytes at byte 16.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

offset

offset in the file at which to read. unsigned long long stored in 8 bytes at byte 20.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

size

The number of bytes to read. unsigned int stored in 4 bytes at byte 28.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None