public static String stringFor ( int n ) { switch ( n ) { case CU_AD_FORMAT_UNSIGNED_INT8 : return "CU_AD_FORMAT_UNSIGNED_INT8" ; case CU_AD_FORMAT_UNSIGNED_INT16 : return "CU_AD_FORMAT_UNSIGNED_INT16" ; case CU_AD_FORMAT_UNSIGNED_INT32 : return "CU_AD_FORMAT_UNSIGNED_INT32" ; case CU_AD_FORMAT_SIGNED_INT8 : return "CU_AD_FORMAT_SIGNED_INT8" ; case CU_AD_FORMAT_SIGNED_INT16 : return "CU_AD_FORMAT_SIGNED_INT16" ; case CU_AD_FORMAT_SIGNED_INT32 : return "CU_AD_FORMAT_SIGNED_INT32" ; case CU_AD_FORMAT_HALF : return "CU_AD_FORMAT_HALF" ; case CU_AD_FORMAT_FLOAT : return "CU_AD_FORMAT_FLOAT" ; } return "INVALID CUarray_format: " + n ; }
Returns the String identifying the given CUarray_format