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
  id = An unsigned int stored in 4 bytes starting at byte 16
The file ID returned by a FileOpen command
  offset = An unsigned long long stored in 8 bytes starting at ...
offset in the file at which to read
  size = An unsigned int stored in 4 bytes starting at byte 28
The number of bytes to reead from file.

Inherited from Command: length, number, type


Properties [hide private]

Inherited from Command: data

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                                                                    
      

id

The file ID returned by a FileOpen command
Value:
An unsigned int stored in 4 bytes starting at byte 16                  
      

offset

offset in the file at which to read
Value:
An unsigned long long stored in 8 bytes starting at byte 20            
      

size

The number of bytes to reead from file.
Value:
An unsigned int stored in 4 bytes starting at byte 28