Correct buffer type in C++ GIO wrapper