Lines Matching refs:elementType
593 * Convert a Python object to an array of 'elementType'. The array should
599 * 'elementType' or an appropriatly typed and shaped numeric array.
607 const char* elementType,
613 Py_ssize_t eltsize = PyObjCRT_SizeOfType(elementType);
623 !(*elementType == _C_NSBOOL || *elementType == _C_BOOL || *elementType == _C_CHAR_AS_INT)) {
704 if (*elementType == _C_UNICHAR && PyUnicode_Check(pythonList)) {
727 } else if (*elementType == _C_UNICHAR && PyString_Check(pythonList)) {
795 if (code_compatible(code, *elementType)) {
797 } else if (*elementType == _C_ARY_B) {
801 if (!code_compatible(code, array_elem_code(elementType))) {
805 code, elementType);
809 } else if (*elementType == _C_STRUCT_B) {
814 if (!code_compatible(code, struct_elem_code(elementType))) {
818 code, elementType);
825 code, elementType);
881 if (*elementType == _C_NSBOOL) {
886 } else if (*elementType == _C_CHAR_AS_INT) {
926 r = depythonify_c_value(elementType, item,
942 const char* elementType,
950 eltsize = PyObjCRT_SizeOfType(elementType);
957 if (*elementType != _C_NSBOOL && *elementType != _C_BOOL && *elementType != _C_CHAR_AS_INT) {
963 if (*elementType == _C_UNICHAR) {
979 PyObject* elt = pythonify_c_value(elementType, array);
1134 const char* elementType,
1148 eltsize = PyObjCRT_SizeOfType(elementType);
1154 if (*elementType != _C_NSBOOL && *elementType != _C_BOOL && *elementType != _C_CHAR_AS_INT) {
1159 if (*elementType == _C_UNICHAR) {
1175 PyObject* elt = pythonify_c_value(elementType, array);