* return Py_True if this data-type descriptor * has native byteorder if no fields are defined * * or if all sub-fields have native-byteorder if * fields are defined */
| 2204 | * fields are defined |
| 2205 | */ |
| 2206 | static PyObject * |
| 2207 | arraydescr_isnative_get(PyArray_Descr *self, void *NPY_UNUSED(ignored)) |
| 2208 | { |
| 2209 | PyObject *ret; |
| 2210 | int retval; |
| 2211 | retval = _arraydescr_isnative(self); |
| 2212 | if (retval == -1) { |
| 2213 | return NULL; |
| 2214 | } |
| 2215 | ret = retval ? Py_True : Py_False; |
| 2216 | Py_INCREF(ret); |
| 2217 | return ret; |
| 2218 | } |
| 2219 | |
| 2220 | static PyObject * |
| 2221 | arraydescr_isalignedstruct_get(PyArray_Descr *self, void *NPY_UNUSED(ignored)) |
nothing calls this directly
no test coverage detected