![]() |
|
| << Previous | Next >> | |
| | |
xmem void * palloc_fast( Pool_t * p );
Description
- Return next available free element from the given pool, which must be a root pool.
- This is an assembler-only version of
palloc().
- *** Do _not_ call this function from C. ***
palloc_fastdoes not perform any IPSET protection, parameter validation, or update the high-water mark.palloc_fastis a root function. The parameter must be passed in IX, and the returned element address is in HL.Registers
- Parameter in IX
Trashes F, BC, DE
Return value in HL, carry flag.Example
- ld ix,my_pool
lcall palloc_fast
jr c,.no_free
; HL points to elementParameters
- p
- Pool handle structure, as previously passed to
pool_init(). Pass this in IX.
Return value
- C flag set: no free elements were available.
C flag clear (NC): HL points to an element.
- If the pool is not linked, your application can use this element provided it does not write more than
p->elsizebytes to it (this was theelsizeparameter passed topool_init()). If the pool is linked, you can writep->elsize-4bytes to it.Library
- POOL.LIB
See Also
- pool_init, pfree_fast, pavail_fast, palloc
| Dynamic C Functions | << Previous | Next >> | rabbit.com |