Add support for putDouble and getDouble from Unsafe. #715
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As seen in 9d99692 , I add a support for double too. I spot this while using Kryo library, quite popular in libGDX world (https://github.com/EsotericSoftware/kryo/blob/master/src/com/esotericsoftware/kryo/serializers/UnsafeField.java#L214).
The change should be quite harmless, but someone more expert then me should really look at it carefully. I'm just proposing a fix, maybe it's wrong, but I'd really appreciate to get this fixed in a way or another... Seems a small feature but has a huge impact in my use case.
Many thanks!