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
:FunctionSignature
the signature of the function to load
call_directory
:str
the directory for calling
docstring
:str
the docstring for the function
construct(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):
uncast(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):