jpayne@69: #ifndef Py_STRHEX_H jpayne@69: #define Py_STRHEX_H jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #ifndef Py_LIMITED_API jpayne@69: /* Returns a str() containing the hex representation of argbuf. */ jpayne@69: PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen); jpayne@69: /* Returns a bytes() containing the ASCII hex representation of argbuf. */ jpayne@69: PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen); jpayne@69: /* These variants include support for a separator between every N bytes: */ jpayne@69: PyAPI_FUNC(PyObject*) _Py_strhex_with_sep(const char* argbuf, const Py_ssize_t arglen, const PyObject* sep, const int bytes_per_group); jpayne@69: PyAPI_FUNC(PyObject*) _Py_strhex_bytes_with_sep(const char* argbuf, const Py_ssize_t arglen, const PyObject* sep, const int bytes_per_group); jpayne@69: #endif /* !Py_LIMITED_API */ jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif /* !Py_STRHEX_H */