gonna test these typemaps with the tests I'm gonna write next.
This commit is contained in:
parent
689ee84415
commit
0733700343
1 changed files with 5 additions and 4 deletions
|
|
@ -136,11 +136,12 @@
|
|||
|
||||
#if defined(SWIGPHP)
|
||||
%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*[] {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue