Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hsutinen
Copy link

We have used fressian-clr cross platform with jvm implementation. We noticed that ToByteArray method in clr Guid class gives the bytes in different order than jvm. This commit makes fressian-clr Guid compatible with jvm UUID.

This is documented in the Guid Structure, see https://msdn.microsoft.com/en-us/library/system.guid.tobytearray(v=vs.110).aspx

In the Remark section:
"Note that the order of bytes in the returned byte array is different from the string representation of a Guid value. The order of the beginning four-byte group and the next two two-byte groups is reversed, whereas the order of the last two-byte group and the closing six-byte group is the same. "

Best Regards,
Heikki Sutinen

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.

1 participant