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(), NodeNe
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 documenta
2019. április 29., hétfő 17:41:51 UTC+2 időpontban Nitish Saboo a
következőt írta:
>
> Hi Tamás,
>
> If I return LogMessage type of object from C code, what type of object
> should be there on Go side to receive the return value because the Go side
> doesn't have a LogMessage object ?
>
> Thank
Hi Tamás,
If I return LogMessage type of object from C code, what type of object
should be there on Go side to receive the return value because the Go side
doesn't have a LogMessage object ?
Thanks
On Mon, Apr 29, 2019 at 7:14 PM Tamás Gulácsi wrote:
> LogMessage *match(...) {
> ...
> return
LogMessage *match(...) {
...
return msg;
}
--
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https
Hi,
void match(const gchar *pattern, size_t pattern_len, const gchar *program,
size_t program_len)
{
LogMessage *msg = log_msg_new_empty();
PDBInput input;
log_msg_set_value(msg, LM_V_MESSAGE, pattern, pattern_len);
log_msg_set_value(msg, LM_V_PROGRAM, program, program_len);
pattern_db_process(pa
2019. április 26., péntek 13:41:53 UTC+2 időpontban Nitish Saboo a
következőt írta:
>
> Thanks for the info. Jan.My main issue is how can I access the value on Go
> side after some manipulation within the C code ?
>
> Thanks
>
> On Fri, Apr 26, 2019 at 4:28 PM Jan Mercl <0xj...@gmail.com >
> wro
On Fri, Apr 26, 2019 at 4:41 AM Nitish Saboo wrote:
>
> Thanks for the info. Jan.My main issue is how can I access the value on Go
> side after some manipulation within the C code ?
You do it exactly as though you passed a pointer to a Go function, and
then accessed the value after the Go functi
Thanks for the info. Jan.My main issue is how can I access the value on Go
side after some manipulation within the C code ?
Thanks
On Fri, Apr 26, 2019 at 4:28 PM Jan Mercl <0xj...@gmail.com> wrote:
> On Fri, Apr 26, 2019 at 12:54 PM Nitish Saboo
> wrote:
>
> > Can I pass a pointer to a value f
On Fri, Apr 26, 2019 at 12:54 PM Nitish Saboo wrote:
> Can I pass a pointer to a value from Go to C, do some manipulation on it
> within the C code and access the value from Go after the C code executes ?
The first part of the question is discussed in great detail here:
https://golang.org/cmd/c
Hi Jan,
Can I pass a pointer to a value from Go to C, do some manipulation on it
within the C code and access the value from Go after the C code executes ?
Thanks
On Fri, Apr 26, 2019 at 4:09 PM Jan Mercl <0xj...@gmail.com> wrote:
> On Fri, Apr 26, 2019 at 12:34 PM Nitish Saboo
> wrote:
> >
>
On Fri, Apr 26, 2019 at 12:34 PM Nitish Saboo wrote:
>
> Hi,
>
> I want to call C code from GO code.Once the C code gets executed I want to
> pass the value back to the GO code.
> Can someone please guide me as in how to pass value back from C code to the
> GO code.
What C type the value is? Do
12 matches
Mail list logo