VB中怎样实现移位运算
请问怎样用VB来实现下面C程序,怎样进行移位运算//将4个8位参数组合成32位整型
int ComposeIntParam(unsigned char *param1)
{
int tempdata;
tempdata = param1[0] << 24;
tempdata |= param1[1] << 16;
tempdata |= param1[2] << 8;
tempdata |= param1[3];
return tempdata;
}
//分解32位整型为4个8字节数
void DecomposeIntValue(unsigned char *a,int
chValue)
{
a[0] = chValue >> 24;
a[1] = chValue >> 16;
a[2] = chValue >> 8;
a[3] = chValue;
}