Re: [go-nuts] Pass value from C code to GO code(CGO)

2019-04-30 Thread ksbhaskar
Nitish privately e-mailed me: Can you please specify the particular files in YottaDB repository that are exchanging key-value pairs between C and Go ? I am replying to the threadd. Look at the buffer_t* and key_t* files. You can also trace the implementations of NodeNextE(), SubNextE(),

Re: [go-nuts] Pass value from C code to GO code(CGO)

2019-04-29 Thread ksbhaskar
Nitish – As noted, you cannot pass to C a pointer to Go structure. However, Go can use pointers C structures that are provided to it. YottaDB passes key-value tuples between C and Go, and you can look at working code that does this at https://gitlab.com/YottaDB/Lang/YDBGo with further