Skip to content

SDK v2 Migration guide #1671

Answered by timtay-microsoft
janossch asked this question in Q&A
Discussion options

You must be logged in to vote

However I don't really understand why there is a System.arraycopy(...) call is needed in the read() method?
ByteBuffer.wrap(...) "modifications to the buffer will cause the array to be modified and vice versa" source.

This may be an unnecessary line in our sample code, and we'll take a look at it. You are right that it appears the wrapped buffer will
be updated without needing to call System.ArrayCopy(...) here as well.

Since our project is based on Java17 do you think it is a good choice to use its built in unix socket support?
... even if it is not among supported JDK platforms yet...

Go for it! We use the JNR unix socket library in our samples largely because there was no native un…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janossch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants