Java int type conversion error #280
Unanswered
Mr-barbecue
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,I'am confused that I have a trouble about jnr.
I am trying to call a go method from java code. Following code:
Java code:
`
`
go code:
func get(bufKeys unitptr, keysSize C.size_t, bufvalues unitptr, valuesSize C.size_t){ ... }
When a call occurs, under normal circumstances, the go function's parameters are 0x2b57ac006370, 0x000000032000, 0x2b57ac038380, 0x0000000c8000, the second parameter and the fourth parameter correspond to keysLen and valuesLen in Java code. But when my program runs for a while, the go function's parameters became 0x2b57ac006370, 0x2b5700032000, 0x2b57ac038380, 0x2b57000c8000. I have no idea where 2b57 came from.
Beta Was this translation helpful? Give feedback.
All reactions