MLGetInteger64Array (C 関数)
MLGetInteger64ArrayはWSGetInteger64Arrayに置き換えられた.
詳細

- 配列 a はmlint64
と宣言されたC言語の配列のようにメモリにレイアウトされる.
- heads は,配列の各レベルに頭部として現れる記号名に対応する文字列のリストを返す.
- MLGetInteger64Array()は,MLReleaseInteger64Array()を呼び出して解放しなければならないメモリを割り当てる. MLGetInteger64Array()が不成功で関数の返す値がエラーを示す場合には,a のコンテンツについてMLReleaseInteger64Array()を呼び出してはならない.
- MLGetInteger64Array()は不変のデータを返す.
- MLGetInteger64Array()はエラーがあると0を返し,関数が成功すると0以外の値を返す.
- MLError()を使うと,MLGetInteger64Array()が不成功の場合にエラーコードを引き出すことができる.
- MLGetInteger64Array()は,MathLinkヘッダファイルmathlink.hの中で宣言される.
例題
例 (1)
#include "mathlink.h"
/* read an array of 64-bit integers from a link */
void f(MLINK lp)
{
mlint64 *data;
int *dims;
char **heads;
int d;
if(! MLGetInteger64Array(lp, &data, &dims, &heads, &d))
{
/* unable to get the array of 64-bit integers from lp */
return;
}
/* ... */
MLReleaseInteger64Array(lp, data, dims, heads, d);
}