Home > Net >  The integer data to the array
The integer data to the array

Time:10-13

I have two number of c #
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);
  • Related