/** * Combine a 2 value unsigned short (16 bits per) into a set of signed int (32 bits x 1) */ public static int CombineToInt(this ValueTuple <ushort, ushort> tuple) { return((int)tuple.CombineToUInt()); }
/** * Combine a 4 value signed byte (8 bits per) into a set of signed int (32 bits x 1) */ public static int CombineToInt(this ValueTuple <sbyte, sbyte, sbyte, sbyte> tuple) { return((int)tuple.CombineToUInt()); }