pymhf.utils.partial_struct module#
- class pymhf.utils.partial_struct.Field(datatype: _ctypes.Structure, offset: int | None = None)#
Bases:
object
- datatype: Structure#
- pymhf.utils.partial_struct.partial_struct(cls: StructType)#
Mark the decorated class as a partial struct. This will automatically construct the
_field_
attribute for this class