Use 1<<31 instead of 1024. And ifthe C side won't modify/free the *uchar, then you don't need the copy.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/51bc66d7-f137-4b29-a47e-3e37370ed1eao%40googlegroups.com.