mono / gir-sharp

C# binding generator for GIR format
MIT License
12 stars 10 forks source link

Research areas #53

Open decriptor opened 6 years ago

decriptor commented 6 years ago
sundermann commented 6 years ago

What do you mean with field offsets? Unions?

sundermann commented 6 years ago

Varargs parameters are probably an issue. The old generator didn't generate them either since there is no support in .NET for marshalling varags parameters to native. Multiple overloads might work but they are quite ugly:

static extern void varargs_func (int i1);
static extern void varargs_func (int i1, int i2);
static extern void varargs_func (int i1, int i2, int i3);
...