pymhf.utils.partial_struct module#
- class pymhf.utils.partial_struct.Field(datatype: _ctypes._SimpleCData | _ctypes.Structure | pymhf.core._Pointer | _ctypes._Pointer | _ctypes.Array | _ctypes.Union | pymhf.extensions.ctypes.c_enum32, offset: int | None = None)#
Bases:
object
- pymhf.utils.partial_struct.partial_struct(cls: _T) _T #
Mark the decorated class as a partial struct. This will automatically construct the
_field_
attribute for this class