%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)
};
此申请不起作用? 我该如何解决?