The function interface being used requires a single generic void pointer argument:
void* function(void* p_void) { ... }
The argument I need to pass happens to be an array of objects. Let's go back to something simpler; for a normal datatype, it's possible to write:
void* function(void* p_void) {
type* p_object = static_cast<type*>(p_void);
}
Is replacing this type of syntax for arrays possible? If it is, I'm not sure how that works -- how would the function know how long the array is?
Is there a reference that shows how to do this? Something like Range[]* p_array = static_cast<[Range]*>(p_void)
obviously doesn't work in C.