Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:18:10

0001 #ifndef Py_INTERNAL_STRHEX_H
0002 #define Py_INTERNAL_STRHEX_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006 
0007 #ifndef Py_BUILD_CORE
0008 #  error "this header requires Py_BUILD_CORE define"
0009 #endif
0010 
0011 // Returns a str() containing the hex representation of argbuf.
0012 PyAPI_FUNC(PyObject*) _Py_strhex(const
0013     char* argbuf,
0014     const Py_ssize_t arglen);
0015 
0016 // Returns a bytes() containing the ASCII hex representation of argbuf.
0017 PyAPI_FUNC(PyObject*) _Py_strhex_bytes(
0018     const char* argbuf,
0019     const Py_ssize_t arglen);
0020 
0021 // These variants include support for a separator between every N bytes:
0022 PyAPI_FUNC(PyObject*) _Py_strhex_with_sep(
0023     const char* argbuf,
0024     const Py_ssize_t arglen,
0025     PyObject* sep,
0026     const int bytes_per_group);
0027 PyAPI_FUNC(PyObject*) _Py_strhex_bytes_with_sep(
0028     const char* argbuf,
0029     const Py_ssize_t arglen,
0030     PyObject* sep,
0031     const int bytes_per_group);
0032 
0033 #ifdef __cplusplus
0034 }
0035 #endif
0036 #endif /* !Py_INTERNAL_STRHEX_H */