gCAD3D 2.40
ut_umb.h File Reference

Go to the source code of this file.


int UMB_is_alive (int id)
int UMB_reserve__ (int *actId)
int UMB_save (int mbId, void *memPos, long memSiz, int recNr)
int UMB_reload (int *recNr, void *pStart, void **pNxt, void *pEnd, int ii)
void * UMB_pos__ (int mbId)
int UMB_stat__ (int mbId)
int UMB_free (int mbId)
int UMB_dump__ ()

Function Documentation

int UMB_is_alive ( int  id)
* check if blockId <id> is active / valid
* 0=no, 1=yes
int UMB_reserve__ ( int *  actId)
int UMB_save ( int  mbId,
void *  memPos,
long  memSiz,
int  recNr 
* save a memblock (malloc & memcpy);
* set its umbStat to 2.
int UMB_reload ( int *  recNr,
void *  pStart,
void **  pNxt,
void *  pEnd,
int  ii 

reload memBlock ii; update pNxt

void* UMB_pos__ ( int  mbId)
* get startpos of memblock <mbId>
* NULL if memblock not reserved or not yet saved ..
int UMB_stat__ ( int  mbId)
int UMB_free ( int  mbId)

delete a memoryblock

int UMB_dump__ ( )

dump table of memoryblocks