A helper function for selecting the right bytes settings.
M (int) – number of controls to be turned into bytes.
{ number_of_bytes, format_marker, c_type_name} – the byte type for conversion.
{int, str, str}