@2019-06-11
【小记】
1 typedef union MultiByte 2 { 3 unsigned int word; 4 unsigned char byte[sizeof(unsigned int)]; 5 }multiByte_t; 6 7 float _value_from_prase(uint32_t arg) 8 { 9 /* 方法一 */ 10 multiByte_t *parse = (multiByte_t *)&arg; 11 12 /* 方法二 */ 13 multiByte_t parse; 14 parse.word = arg; 15 }