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

Class ListAnswer

source code


Defines the structure of packets that contain items in a list.

Instance Methods [hide private]

Inherited from Answer: __init__

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


Properties [hide private]
  is_dir
True if list item points to a directory, False if it points to a file.
  name_length
The length in bytes of the list item to follow.
  name
The name of the list item.

Inherited from Answer: id

Inherited from object: __class__


Property Details [hide private]

is_dir

True if list item points to a directory, False if it points to a file. unsigned int stored in 4 bytes at byte 16.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

name_length

The length in bytes of the list item to follow. unsigned int stored in 4 bytes at byte 20
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

name

The name of the list item. Stored as an (ascii?) string at byte 24.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None