argument typemap for token works! next, make it work for parse as well.
This commit is contained in:
parent
c51b784612
commit
213f338357
1 changed files with 4 additions and 3 deletions
|
|
@ -136,13 +136,14 @@
|
|||
|
||||
#if defined(SWIGPHP)
|
||||
%ignore HCountedArray_;
|
||||
%typemap(in) (uint8_t* input, size_t len) {
|
||||
$1 = (uint8_t*)$input->value.str.val;
|
||||
$2 = $input->value.str.len;
|
||||
%typemap(in) (const uint8_t* str, const size_t len) {
|
||||
$1 = (uint8_t*)(*$input)->value.str.val;
|
||||
$2 = (*$input)->value.str.len;
|
||||
}
|
||||
%typemap(out) (uint8_t* input, size_t len) {
|
||||
RETVAL_STRINGL((char*)$1, $2, 1);
|
||||
}
|
||||
//%apply (uint8_t* input, size_t len) { (uint8_t* str, size_t len) }
|
||||
%typemap(in) void*[] {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue