SharedLibraryFunction
An object that provides a way to call into a shared library function
__init__(self, shared_library, signature: McUtils.Extensions.ArgumentSignature.FunctionSignature, defaults=None, docstring=None, call_directory=None, return_handler=None, prep_args=None):
shared_library:str |the path to the shared library file you want to use
function_signature:FunctionSignaturethe signature of the function to load
call_directory:strthe directory for calling
docstring:strthe docstring for the function
@classmethod
construct(cls, name, lib, docstring=None, defaults=None, return_type=None, return_handler=None, **args):
@property
function(self):
initialize(self):
doc(self):
__repr__(self):
@property
signature(self):
@classmethod
uncast(cls, res):
call(self, *args, **kwargs):
Calls the function we loaded. This will be parallelized out to handle more complicated usages.
kwargs:Any:returns:_
__call__(self, *args, **kwargs):