MCPcopy Create free account
hub / github.com/numpy/numpy / PyArray_ByteorderConverter

Function PyArray_ByteorderConverter

numpy/core/src/multiarray/conversion_utils.c:530–535  ·  view source on GitHub ↗

NUMPY_API * Convert object to endian */

Source from the content-addressed store, hash-verified

528 * Convert object to endian
529 */
530NPY_NO_EXPORT int
531PyArray_ByteorderConverter(PyObject *obj, char *endian)
532{
533 return string_converter_helper(
534 obj, (void *)endian, byteorder_parser, "byteorder", "not recognized");
535}
536
537static int sortkind_parser(char const *str, Py_ssize_t length, void *data)
538{

Callers

nothing calls this directly

Calls 1

string_converter_helperFunction · 0.85

Tested by

no test coverage detected