Poking and peeking C_USHORT
- Posted by Jonas Temple <jktemple at yhti.net> Oct 12, 2001
- 347 views
Okay...here's the question.... When a dll function calls for a pointer to an short (signed or unsigned) what is the preferred method of poking and peeking the data? I am working on wrapping several dlls and it calls for short data type. I used peek() and then bytes_to_int() but bytes_to_int expects a sequence with a length of 4. Since the data is only two bytes, what is the easiest way to translate back to an atom? Any help would be greatly appreciated. Jonas