What is void** in C#?

前端 未结 6 1191
失恋的感觉
失恋的感觉 2021-01-12 01:42

I\'m looking through the source of a C# program that uses a library written in C. I came across this line and was unsure what it was:

cvbimUNSAFE.GetImageVPA         


        
6条回答
  •  天命终不由人
    2021-01-12 02:11

    It's a void pointer. See this article for details:

    http://msdn.microsoft.com/en-us/library/y31yhkeb%28VS.80%29.aspx

    And you can take a look at this SO question for details on how to implement it in C#:

    How to declare a void pointer in C#

    On a side note, that method should be marked as unsafe if it's not.

提交回复
热议问题