Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG_FIX:data类型回传在c++server中不可用 #8

Open
louiclille opened this issue Jul 3, 2020 · 0 comments
Open

BUG_FIX:data类型回传在c++server中不可用 #8

louiclille opened this issue Jul 3, 2020 · 0 comments

Comments

@louiclille
Copy link
Contributor

    <param name="string_ret" value="string" type="out"/>
    <param name="ulong_ret" value="ulong" type="out"/>
    <param name="uint_ret" value="uint" type="out"/>
    <param name="data_ret" value="data" type="out"/>
    <param name="voidp_info" value="void_p" type="inout"/>
</func>

类型为data的参数设置成out,c++server生成的参数OUT unsigned long &data_ret_len,
OUT unsigned char *data_ret_buf,不可用,直接操作这些参数会造成段错误。需要改成lt_data_t *,并让使用者设置length后自行调用realloc_buf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant