LibraryLink`
LibraryLink`

MImage_shareCount (C Function)

returns the number of sharing references to an MImage held by the Wolfram Language.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.

Examples

Basic Examples  (1)

This returns the number of sharing references to an MImage:

MImage I0;
mint cnt;
...
cnt = libData->MImage_shareCount(I0);