blob: 66a30e2233ce98b887930e13df3b6edcea7a6d90 [file] [log] [blame]
Gregory P. Smithe3f63932015-04-26 00:41:00 +00001#ifndef Py_STRHEX_H
2#define Py_STRHEX_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +03008#ifndef Py_LIMITED_API
Gregory P. Smithe3f63932015-04-26 00:41:00 +00009/* Returns a str() containing the hex representation of argbuf. */
10PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen);
11/* Returns a bytes() containing the ASCII hex representation of argbuf. */
12PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen);
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030013#endif /* !Py_LIMITED_API */
Gregory P. Smithe3f63932015-04-26 00:41:00 +000014
15#ifdef __cplusplus
16}
17#endif
18
19#endif /* !Py_STRHEX_H */