gonna test these typemaps with the tests I'm gonna write next.

This commit is contained in:
Meredith L. Patterson 2013-11-19 23:59:58 -06:00
parent 689ee84415
commit 0733700343

View file

@ -136,11 +136,12 @@
#if defined(SWIGPHP) #if defined(SWIGPHP)
%ignore HCountedArray_; %ignore HCountedArray_;
%typemap(in) uint8_t* { %typemap(in) (uint8_t* input, size_t len) {
$1 = (uint8_t*)$input->value.str.val;
$2 = $input->value.str.len;
} }
%typemap(out) uint8_t* { %typemap(out) (uint8_t* input, size_t len) {
RETVAL_STRINGL((char*)$1, $2, 1);
} }
%typemap(in) void*[] { %typemap(in) void*[] {