static U16 can_app_mib_16Bit_endian_conversion(short value)
{
return (short)((value & 0x00FFU) << 8 | (value & 0xFF00U) >> 8);
}
static int can_app_mib_32Bit_endian_conversion(int value)
{
return (int)((value & 0x000000FFU) << 24 | (value & 0x0000FF00U) << 8 |
(value & 0x00FF0000U) >> 8 | (value & 0xFF000000U) >> 24);
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)