Home > other >  How to read an image file to the buffer and buffer pointer assignment to ctypes. C_void_p
How to read an image file to the buffer and buffer pointer assignment to ctypes. C_void_p

Time:05-21

I have a ctypes structure,
The class NET_DVR_SEND_PARAM_IN (Structure) :
_fields_=[
(" pSendData c_void_p),
(" dwSendDataLen c_ulong)
]

Now I would like to open an image to the buffer, and the address and size of the buffer to pSendData and dwSendDataLen, how to write code?
  • Related