Re: [go-nuts] How to convert C unsigned char * to golang string

2019-12-16 Thread Ian Lance Taylor
On Mon, Dec 16, 2019 at 8:51 PM wrote: > > I am using CGO to call a .so library written by C, and it has a param > unsigned char *result_buffer > > I use a C.uchar to receive its result, but how to convert it a Go string? You should receive the result in a *C.uchar. You can get a Go string by

[go-nuts] How to convert C unsigned char * to golang string

2019-12-16 Thread tyeenoprom
I am using CGO to call a .so library written by C, and it has a param unsigned char *result_buffer I use a C.uchar to receive its result, but how to convert it a Go string? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from