Interesting discovery today. As it turns out, when you send bytes from C# to Java, you lose a byte on the front of the stream. As a result I ended up with 0000 since the front byte never made it to the other side. Also, Java has some awesome byteBuffer.Order() function which lets the bytebuffer know which way to arrange the bytes. The hard part is, how do I feed data back because as far as I can see, converting edian in C# is not as easy as it is in Java. Might as well just write a byte reverser myself.
No comments:
Post a Comment