gCAD3D 2.35

../gcad_doxygen/Tools-MemoryFunctions.dox

Memory

Temp-space
Textstrings__UtxTab
Bit-Arrays__BitTab
Swap-Invert-Delete
Fixed-Length-Records__MemTab
Variable-Length-Records_Memspc_UME
Save-retrieve_key-value-Records_in_file__DBF

Temp-space

// get temporary memory:
// calls alloca; memspace exists until active function returns.
// get local space for 1000 points
Point *pta;
pta = (Point*) MEM_alloc_tmp (1000 * sizeof(Point));
if(!pta) {TX_Error("funcXX EOM"); return -1;}
// get 1MB local space for a Memspc
Memspc wrkSeg;
UME_alloc_tmp (&wrkSeg, 1000000);

Textstrings__UtxTab

ut_txTab.c            Functions for Textstrings
________________________________________________________________________________

Bit-Arrays__BitTab

ut_BitTab.h           Functions for bit-arrays

Swap-Invert-Delete

ut_mem.c           delete, swap invert ..

Fixed-Length-Records__MemTab

ut_memTab.c           Store fixed-length-records in memory

Variable-Length-Records_Memspc_UME

ut_umem.c             Store variable-length-records in memory
Example:
    Memspc  tSpc;
    UME_init (&tSpc, memspc101, sizeof(memspc101));

Save-retrieve_key-value-Records_in_file__DBF

ut_dbf.c