You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it doesn't know len as in C the pointer just points to beginning. So you have to read the len value from somewhere or manually discover it reading byes until you meet \x00. You you can mark this pointer as safe string and it will automatically detect \x00 while copying the value.
Hi, it doesn't know len as in C the pointer just points to beginning. So you have to read the len value from somewhere or manually discover it reading byes until you meet \x00. You you can mark this pointer as safe string and it will automatically detect \x00 while copying the value.
Thanks a lot for your answer. I have tried various ways to add Tip in TRANSLATOR, but I still can't find a way to mark it as a safe string. Can you give me some tips? Thanks again.
Hello, I got a C function returns struct like this:
With generated go is
And
Deref()
does't set the Len for theVersion
[]byte, So is there any way to read Version out since i can not get the length,Thanks.
The text was updated successfully, but these errors were encountered: