How is a 8030000111 to 0000000? 1 dea013ef? Eight bytes and deposited in the array,
The other one is I want to 688? 02 b0? Only two bytes and deposited in the array,
CodePudding user response:
Long a=8030000111;Byte [] arr1=BitConverter. GetBytes (a);
Short b=688;
Byte [] arr2=BitConverter. GetBytes (b);