mrcrowbar.views module¶
- class mrcrowbar.views.LinearStore(parent, source, block_klass, offsets=None, sizes=None, base_offset=0, fill=b'\x00', block_kwargs=None, transform=None, **kwargs)[source]¶
Bases:
View
- property base_offset¶
- property items¶
- property offsets¶
- property sizes¶
- property source¶
- class mrcrowbar.views.Store(parent, source, fill=b'\x00', base_offset=0, align=1, **kwargs)[source]¶
Bases:
View
- property align¶
- property base_offset¶
- property source¶
- class mrcrowbar.views.StoreRef(block_klass, store, offset, size=None, count=None, block_kwargs=None, transform=None)[source]¶
Bases:
Ref
Create a new Ref instance.
- path
The path to traverse from the context object to reach the target. Child lookups should be in property dot syntax (e.g. obj1.obj2.target). For Blocks that are constructed by other Blocks, you can use the _parent property to traverse up the stack.
- allow_write
Allow modification of the target with the set() method.
- cache(instance)[source]¶
Signal to the source to pre-load information.
Called by the parent Block constructor.