Xiqual 0.9.1

In file xitools/mem_arrayget.c:

long mem_arrayget

(int x, int y, int z, ASpec* a)

Access memory as a 1-, 2- or 3-dimensional array.

Documentation

Access memory as a 1-, 2- or 3-dimensional array. This gets an element from dynamically allocated memory.
The memory can be accessed as a 1, 2 or 3 dimensional array, depending in the settings of ASpec.
The data pointer in the ASpec structure is of type 'long', which means that the memory might have to be 'type cast'.
Also if a finer resolution than 'long' is required that will be up to the user to mask off the irrelevant bits.
Parameters:
- x The x offset in the array.
- y The y offset in the array.
z - The z offset in the array.
ASpec - A pointer to an ASpec structure.
Returns:
Element at specified coordinates in array.
Author:
Shane O'Neill
See Also:
mem_arrayset()

Alphabetic index



This page was generated with the help of DOC++.