From the C code this is the structure which is part of another structure:
struct loop_funcs {
size_t (*loop_convert) (iconv_t icd,
const char* * inbuf, size_t *inbytesleft,
char* * outbuf, size_t *outbytesleft);
size_t (*loop_reset) (iconv_t icd,
char* * outbuf, size_t *outbytesleft);
};
So far I have this defined in C# to use this structure:
[StructLayout(LayoutKind.Sequential)]
struct loop_funcs {
ulong (loop_convert) (conv_struct icd,
string * inbuf, ulong inbytesleft,
string * outbuf, ulong outbytesleft)
ulong (loop_reset) (conv_struct icd,
char* * outbuf, ulong outbytesleft)
}
However I am lost on how to handle this conversion it is not a simple structure definition that I have found so far in other examples.