From Tin on the mailing list:
I'm trying to get Python unicode objects from a wchar_t* and its length. ffi.string worked great until I needed to allow null bytes in the string. The docs suggest using ffi.buffer, but I'm not sure how to get a Python unicode string from a buffer once I have it. What am I missing?