Re: Passing array of C# structs
Ephraim Yawitz <[email protected]>
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <CAP-4f0JN5dZ9p_NiLaUq8WKg9C00RxvhSt1+08i58DkC7h2+ZA@mail.gmail.com> |
Why is this question being ignored? On Sun, Jan 19, 2020 at 6:35 PM Ephraim Yawitz <[email protected]> wrote: > Hi, > > I raised this subject a while back, but I didn't get any useful answer, > and I wrote a native-code workaround. Maybe now someone has some advice. > > I have a C struct: > > typedef struct t_IN > { > unsigned int a; > unsigned int b; > unsigned int c; > } t_IN; > > and a C function: > > int ReceiveString(t_IN *pUserbuf, int dwCount); > > where pUserbuf represents an array of t_IN structs. > > If I try to use CSHARP_ARRAYS(t_IN, t_IN) > > and > > %apply t_IN INOUT[] {t_IN * pUserbuf} > > the pointer that the wrapper sends to the C code does not work as an array. > > Does someone know the magic words I have to use? > > Thank you, > > Ephraim Yawitz > > _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user