also useful if you're dealing with blobs of C memory: https://utcc.utoronto.ca/~cks/space/blog/programming/GoCGoCompatibleStructs
On Sat, May 19, 2018 at 3:03 PM, Jan Mercl <[email protected]> wrote: > > On Sat, May 19, 2018 at 10:42 PM Max <[email protected]> > wrote: > > > The question is: is it allowed to take the unsafe.Pointer returned by > C.malloc() and convert it to a pointer to a Go struct type? > > See https://golang.org/pkg/unsafe/#Pointer > -- > > -j > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
