将LP_c_char转换为含义为字符串或列表的内容

时间:2017-09-28 19:15:25

标签: python c++ sip

我正在构建一个sip对象,这是一个char到ctypes u_byte类型的缓冲区,它会产生以下对象:

<ctypes.LP_c_char object at 0x23b95560>

出于调试目的,我想访问其内容。我已阅读What's the difference between LP_* pointers and *_p pointers in ctypes? (and weird interaction with structs)那篇文章,但没有帮助。

知道如何使用LP_c_char类型将其转换为python字符串或char列表吗?

0 个答案:

没有答案