%apply (char* STRING,size_t LENGTH)
{
(char* dataBuffer, int size)
};
这用于转换char*
为byte[]
.
但我需要转换unsigned char*
为short[]
%apply (unsigned char* STRING,size_t LENGTH)
{
(unsigned char* dataBuffer, int size)
};
这个申请不行吗?我该如何解决?