pymhf.extensions.ctypes module#

class pymhf.extensions.ctypes.c_char_p32#

Bases: c_ulong

This is a thin wrapper around the uint32 type because python has issues having char* <-> c_char_p as the function argument type and then accessing the value. This class avoids the issue by casting the underlying integer value to a ctypes.c_char_p and getting the value of this.

class pymhf.extensions.ctypes.c_char_p64#

Bases: c_ulonglong

This is a thin wrapper around the uint64 type because python has issues having char* <-> c_char_p as the function argument type and then accessing the value. This class avoids the issue by casting the underlying integer value to a ctypes.c_char_p and getting the value of this.

class pymhf.extensions.ctypes.c_enum16#

Bases: c_short, Generic[IE]

c_int16 wrapper for enums. This doesn’t have the full set of features an enum would normally have, but just enough to make it useful.

property name: str#
class pymhf.extensions.ctypes.c_enum32#

Bases: c_long, Generic[IE]

c_int32 wrapper for enums. This doesn’t have the full set of features an enum would normally have, but just enough to make it useful.

property name: str#