Using python ctypes and libc to write void pointer to binary file
问题 I am using python ctypes and libc to interface with a vendor-provided DLL file. The purpose of the DLL file is to acquire an image from a camera. The image acquisition appears to run without error; the issue I am having is accessing the data. The image acquisition function takes a ctypes.c_void_p as an argument for the image data. simplified as follows: """ typedef struct AvailableData { void* initial_readout; int64 readout_count; } imageData; """ class AvailableData(ctypes.Structure):