Hi
I have been browsing C struct to C# mapping emails on the newsgroups,
but I haven't been able to find a solution to my problem.
My C structure looks like this:
struct myCstruct {
char * data;
size_t size;
};
I want to directly map it into C# as a structure there. But all the
emails have examples of mapping constant size character arrays (usually
as strings). This I would like to map as a byte[].
The aim is that C provides a function callback and passes to the
callback this structure. Then C# uses public delegate and directly
invokes that callback.
I can insert another C callback or function that changes the arguments
to the C callback and splits the structure into separate char* and
size_t elements, but that is not my intention.
I want to directly call C# from C.
Any help will be appreciated.
Thanks and regards,
Vikas