File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -52,5 +52,13 @@ Before sending a pull request, please file an issue ([see the previous section](
52
52
with the details of what you have changed or are going to change. This way, your time is not wasted if the change does
53
53
not meet our goals, and we can discuss the changes in depth within the issue.
54
54
55
+ ## Why am I getting EINVAL for a pointer passed to native (e.g. getsockopt's len pointer)
56
+
57
+ Length pointers passed to native functions are often read and also written back by the function to indicate how much
58
+ data was actually returned. If you specify only @In OR @Out the native memory allocated for the pointer may not be
59
+ set up correctly for two-way synchronization. Remove the annotation or specify both (which is the default when neither
60
+ are specified.
61
+
62
+
55
63
If you are adding new functionality, ensure that you add unit tests that will test the behavior of your new code and, if
56
- it is a public API, add descriptive javadoc comments for the new code.
64
+ it is a public API, add descriptive javadoc comments for the new code.
You can’t perform that action at this time.
0 commit comments