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

guids sent in jvm byte order #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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