Re: [go-nuts] using runtime cgo.Handle passing struct types

2024-05-18 Thread Ian Lance Taylor
On Thu, May 16, 2024 at 12:57 AM Pavan wrote: > > Thanks . Yes it works when C API takes uintptr_t. In my case, the C API > expects void * which i can not change, so I was trying to make it work with > the variant example stated above. In C, unlike Go, you can convert between void* and uintptr_

Re: [go-nuts] using runtime cgo.Handle passing struct types

2024-05-18 Thread Sudarshan Soma
Thanks Ian, Yes i followed a similar approach and it's working fine.. On Sun, May 19, 2024 at 4:36 AM Ian Lance Taylor wrote: > On Thu, May 16, 2024 at 12:57 AM Pavan wrote: > > > > Thanks . Yes it works when C API takes uintptr_t. In my case, the C API > expects void * which i can not change,