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

Fix bug related to memoryAddress access when unsafe is not accessible… #579

Merged
merged 1 commit into from Sep 6, 2023

Conversation

normanmaurer
Copy link
Member

… and Datagram extension is used

Motivation:

We can't assume we can directly access the memoryAddress of the ByteBuf as it might not be possible on all platforms or even explicit disabled by the end user

Modifications:

Use static helper method that will always be able to return the correct memory address

Result:

Code works as expected on all platforms

… and Datagram extension is used

Motivation:

We can't assume we can directly access the memoryAddress of the ByteBuf as it might not be possible on all platforms or even explicit disabled by the end user

Modifications:

Use static helper method that will always be able to return the correct memory address

Result:

Code works as expected on all platforms
@normanmaurer normanmaurer added this to the 0.0.51.Final milestone Sep 6, 2023
@normanmaurer normanmaurer merged commit 5255d44 into main Sep 6, 2023
12 checks passed
@normanmaurer normanmaurer deleted the memaddress branch September 6, 2023 17:06
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

Successfully merging this pull request may close these issues.

None yet

1 participant