I am trying to wrap
foo(const int *data, size_t len)
in Python interface. I discovered that the following typemap can be used
%typemap(in) (const void *data, size_t len) = (const char *STRING, size_t LENGTH)
This works fine, but I want to impose additional check that "len" is divisible by sizeof(int). In order to do that I tried to find definition of (const char *STRING, size_t LENGTH), but failed to do that. Is this "magic" typemapping done internally in swig? I'm just trying to understand how can I combine several parameters in one.
Thank you in advance!