I have a buffer like:
bufstr = ctypes.create_string_buffer("Test", 32)
How do I get the address of this buffer? i.e. displayed if I do:
print bufstr
as:
<ctypes.c_char_Array_32 object at 0x042ACAD0>
I know that I can pass it using byref (), for example; but what if I just want to get this address (other than slicing this line!)?
Thanks!
source share