WSTP C Functions for Exchanging Integers
Sending Integers
WSPutInteger8() — 8-bit unsigned char
WSPutInteger16() — 16-bit short
WSPutInteger32() — 32-bit int
WSPutInteger64() — 64-bit integers
Receiving Integers
WSGetInteger8() — 8-bit unsigned char
WSGetInteger16() — 16-bit short
WSGetInteger32() — 32-bit int
WSGetInteger64() — 64-bit integer
Sending Lists of Integers
WSPutInteger8List() — list of 8-bit integers (unsigned char *)
WSPutInteger16List() — list of 16-bit integers (short *)
WSPutInteger32List() — list of 32-bit integers (int *)
WSPutInteger64List() — list of 64-bit integers (mlint64 *)
Receiving Lists of Integers
WSGetInteger8List() — list of 8-bit integers (unsigned char *)
WSGetInteger16List() — list of 16-bit integers (short *)
WSGetInteger32List() — list of 32-bit integers (int *)
WSGetInteger64List() — list of 64-bit integers (mlint64 *)
Releasing Memory for Lists of Integers
WSReleaseInteger8List() — list of 8-bit integers (unsigned char *)
WSReleaseInteger16List() — list of 16-bit integers (short *)
WSReleaseInteger32List() — list of 32-bit integers (int *)
WSReleaseInteger64List() — list of 64-bit integers (mlint64 *)
Sending Arrays of Integers
WSPutInteger8Array() — 8-bit integer array (unsigned char *)
WSPutInteger16Array() — 16-bit integer array (short *)
WSPutInteger32Array() — 32-bit integer array (int *)
WSPutInteger64Array() — 64-bit integer array (mlint64 *)
Receiving Arrays of Integers
WSGetInteger8Array() — 8-bit integer array (unsigned char *)
WSGetInteger16Array() — 16-bit integer array (short *)
WSGetInteger32Array() — 32-bit integer array (int *)
WSGetInteger64Array() — 64-bit integer array (mlint64 *)
Releasing Memory for Arrays of Integers
WSReleaseInteger8Array() — 8-bit integer array (unsigned char *)
WSReleaseInteger16Array() — 16-bit integer array (short *)
WSReleaseInteger32Array() — 32-bit integer array (int *)
WSReleaseInteger64Array() — 64-bit integer array (mlint64 *)