You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I am using CGO to call a .so library written by C, and it has a param
unsignedchar*result_buffer
I use a C.uchar to receive its result, but how to convert it a Go string?
Ian Lance Taylor
unread,
Dec 16, 2019, 11:56:25 PM12/16/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tyeen...@gmail.com, golang-nuts
You should receive the result in a *C.uchar. You can get a Go string
by calling something like C.GoString((*C.char)(unsafe.Pointer(p))).
See https://golang.org/cmd/cgo.