| M E M _ A L L O C A R R A Y ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English PORTA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_allocarray() - Allocate non-continous(cell based)
array.
SYNOPSIS
ptr = mem_allocarray(blksize, size, nodes, flags);
void *mem_allocarray(ULONG, ULONG, ULONG, ULONG);
FUNCTION
This function tries to allocate array of desired size
in such a way that even heavily fragmented memory is
not an issue.
INPUTS
blksize - Single cell size(will be rounded to the
nearest power of 2). Currently this can
be a value ranging from 4096 to 65536.
size - Size of one element. This cannot exceed
'blksize'! Anyway, the widest possible
datatype is QUAD.
nodes - How many elements.
flags - Standard memory flags.
RETURNS
Returns ptr to newly created array or NULL if there
is not enough memory.
BASES
SysBase
NOTES
Returned pointer is not what you think, so do not read
/ write it standard way! Use 'mem_accessarray()' macro
to poke.
SEE ALSO
mem_freearray(), mem_accessarray()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |