All Questions
Tagged with pointer-to-pointer c#
4 questions
1
vote
0
answers
76
views
Marshalling double pointers in C#
I have to interact with a provided C library where one of the functions is declared as follows:
int GetFileList(struct spiflash_file **ptr_spiflash_filelist, int **file_num);
where **...
3
votes
1
answer
3k
views
what is a Double Pointer equivalent in c#?
I'm trying to convert a c++ code into c# and I encountered a double pointer. I'm wondering how can double pointers be implemented in c#?
if I have say,
MyClass **MyClasses;
and it was initialized ...
2
votes
1
answer
139
views
char** DllImport fails
I would like to DllImport the following function. Nevertheless, "ret" returns true, but my string array seems to be empty, so I think I may need some marshaling. Any tip is welcome! Thanks in advance :...
3
votes
2
answers
274
views
Can I store a reference to a local reference?
To be clear, I want the behavior of a pointer-to-a-pointer, and the purpose of this question is to generate clean, readable code.
I have some code that contains conditions checking the result of ...