Changed the type of the first parameter of the callback function to match its C declaration and provide a []byte rather than []int8 to user callback function.