For example, I have a class that has short, byte, int type member variable.
class A{
short a;
byte b;
int c;
}
If I serialize or convert to byte array, the Array is unexpected value.
if values like,
A a = new A();
a.a = 3;
a.b = 0x02;
a.c = 15;
then, I expect its bytes as,
00 03 02 00 00 00 0F
So... How to Serialize Object like that?
It needs my socket server... other language