Swig unsigned char * to short []

时间:2013-08-15 14:42:43

标签: char byte swig unsigned short

 %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)
 }; 

此申请不起作用? 我该如何解决?

0 个答案:

没有答案