int Encode (short c, short v) { uint temp = 0; temp |= (uint)c; temp |= ((uint)v) << 16; return (int)temp; }