OpenersNotesSection(Spacer1)Details

The array a must have been allocated by a call to (NonWLLink[MLGetInteger8Array(), paclet:/ref/c/MLGetInteger8Array]).

MLReleaseInteger8Array() is declared in the MathLink header file (RefLink[mathlink.h, paclet:/ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "mathlink.h"

/* A function for retrieving an array of 8-bit integers from a link */

void f(MLINK l)
{
	unsigned char *data;
	int *dims;
	char **heads;
	int depth;

	if(! MLGetInteger8Array(l, &data, &dims, &heads, &depth))
	{ /* Unable to get the array of integers from the link */ }

	/* ... */

	MLReleaseInteger8Array(l, data, dims, heads, depth);
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[MLGetInteger8Array(), paclet:/ref/c/MLGetInteger8Array])  ▪  (NonWLLink[MLReleaseInteger16Array(), paclet:/ref/c/MLReleaseInteger16Array])  ▪  (NonWLLink[MLReleaseInteger32Array(), paclet:/ref/c/MLReleaseInteger32Array])  ▪  (NonWLLink[MLReleaseInteger64Array(), paclet:/ref/c/MLReleaseInteger64Array])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Expressions in External Programs, paclet:tutorial/ManipulatingExpressionsInExternalPrograms])}, {▪(RefLinkPlain[Handling Lists, Arrays, and Other Expressions, paclet:tutorial/HandlingListsArraysAndOtherExpressions])}})}})