Define a helper function to prevent ctypes from appending the null-char.
Define a helper function to prevent ctypes from appending the null-char.

Also, fix and simplify setBuffer.

vpelletier/python-libusb1,vpelletier/python-libusb1