astyanax
astyanax copied to clipboard
fromByteBuffer() not working properly in Int32Serializer/IntegerSerializer
Hello,
It seems to me fromByteBuffer() should work with bytebuffers with more bytes remaining too, as it is only reading the next 4 bytes.
Also, the instance field in Int32Serializer was not initialized correctly.
Thanks.
Olivier
This makes fromByteBuffer() of Int32Serializer/IntegerSerializer more coherent with BooleanSerializer behaviour.
Actually, I added a small fix for LongSerializer too.