Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/pystrhex.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 #ifndef Py_STRHEX_H |
jpayne@69 | 2 #define Py_STRHEX_H |
jpayne@69 | 3 |
jpayne@69 | 4 #ifdef __cplusplus |
jpayne@69 | 5 extern "C" { |
jpayne@69 | 6 #endif |
jpayne@69 | 7 |
jpayne@69 | 8 #ifndef Py_LIMITED_API |
jpayne@69 | 9 /* Returns a str() containing the hex representation of argbuf. */ |
jpayne@69 | 10 PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen); |
jpayne@69 | 11 /* Returns a bytes() containing the ASCII hex representation of argbuf. */ |
jpayne@69 | 12 PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen); |
jpayne@69 | 13 /* These variants include support for a separator between every N bytes: */ |
jpayne@69 | 14 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 | 15 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 | 16 #endif /* !Py_LIMITED_API */ |
jpayne@69 | 17 |
jpayne@69 | 18 #ifdef __cplusplus |
jpayne@69 | 19 } |
jpayne@69 | 20 #endif |
jpayne@69 | 21 |
jpayne@69 | 22 #endif /* !Py_STRHEX_H */ |