qubx :: tree :: dtree :: Class dtree
[hide private]
[frames] | no frames]

Class dtree

source code

object --+
         |
        dtree

A light intermediary between a file and a reader of qubtree nodes, for debugging.

Instance Methods [hide private]
 
__init__(self, fi)
Sets up a dtree reader given an open file fi.
source code
 
rawframe(self, off)
Returns the tuple of all fields of a qubtree node, located at offset off, except the name.
source code
 
frame(self, off)
Returns the tuple of all fields of a qubtree.Node including the name, with flags upacked.
source code
 
hier(self, off=12, indent='')
Prints the tree of frames rooted at offset off, with indentation to show hierarchy.
source code
 
data(self, off, count, format)
Prints the array of count number of items at offset off, with type given as a format string such as in module struct.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fi)
(Constructor)

source code 

Sets up a dtree reader given an open file fi.

Overrides: object.__init__

rawframe(self, off)

source code 

Returns the tuple of all fields of a qubtree node, located at offset off, except the name.

Returns:
(flags, a, b, type, size, count, dataPos, childPos, siblingPos, c, d, e, f, nameLen) where a thru f are reserved (ignored) bytes.

frame(self, off)

source code 

Returns the tuple of all fields of a qubtree.Node including the name, with flags upacked.

Returns:
(preload, data_in_node, type, size, count, dataPos, childPos, siblingPos, name)