/[ascend]/trunk/base/generic/utilities/mem.h
ViewVC logotype

Diff of /trunk/base/generic/utilities/mem.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 592 by johnpye, Fri May 12 09:50:57 2006 UTC revision 593 by johnpye, Fri May 12 10:03:59 2006 UTC
# Line 138  Line 138 
138   *  @see mem_move()   *  @see mem_move()
139   */   */
140    
141  extern void mem_move(POINTER from, POINTER too, size_t nbytes);  ASC_DLLSPEC(void ) mem_move(POINTER from, POINTER too, size_t nbytes);
142  /**<  /**<
143   *  Implementation function for mem_move_cast().  Do not call this   *  Implementation function for mem_move_cast().  Do not call this
144   *  function directly - use mem_move_cast() instead.   *  function directly - use mem_move_cast() instead.
# Line 195  ASC_DLLSPEC(void) mem_repl_byte(POINTER Line 195  ASC_DLLSPEC(void) mem_repl_byte(POINTER
195   *  @see mem_zero_byte()   *  @see mem_zero_byte()
196   */   */
197    
198  extern void mem_zero_byte(POINTER too, unsigned byte, size_t nbytes);  ASC_DLLSPEC(void ) mem_zero_byte(POINTER too, unsigned byte, size_t nbytes);
199  /**<  /**<
200   *  Implementation function for mem_zero_byte_cast().  Do not call this   *  Implementation function for mem_zero_byte_cast().  Do not call this
201   *  function directly - use mem_zero_byte_cast() instead.   *  function directly - use mem_zero_byte_cast() instead.
# Line 314  ASC_DLLSPEC(void) mem_get_stats(struct m Line 314  ASC_DLLSPEC(void) mem_get_stats(struct m
314   *  @param ms      Pointer to the memory store to query.   *  @param ms      Pointer to the memory store to query.
315   */   */
316    
317  extern mem_store_t mem_create_store(int length, int width, size_t eltsize,  ASC_DLLSPEC(mem_store_t ) mem_create_store(int length, int width, size_t eltsize,
318                                      int deltalen, int deltapool);                                      int deltalen, int deltapool);
319  /**<  /**<
320   *  Creates and returns a new memory store. The returned mem_store_t   *  Creates and returns a new memory store. The returned mem_store_t
# Line 374  extern mem_store_t mem_create_store(int Line 374  extern mem_store_t mem_create_store(int
374   *  @return A pointer to the newly created pool store, NULL if an error occurred.   *  @return A pointer to the newly created pool store, NULL if an error occurred.
375   */   */
376    
377  extern void *mem_get_element(mem_store_t ms);  ASC_DLLSPEC(void *) mem_get_element(mem_store_t ms);
378  /**<  /**<
379   *  Get a usable element from the pool.   *  Get a usable element from the pool.
380   *  Returns a void pointer to a blob of memory of the eltsize   *  Returns a void pointer to a blob of memory of the eltsize
# Line 430  extern void mem_get_element_list(mem_sto Line 430  extern void mem_get_element_list(mem_sto
430   *  assumption that the user is perfect.   *  assumption that the user is perfect.
431   */   */
432    
433  extern void mem_free_element(mem_store_t ms, void *eltpointer);  ASC_DLLSPEC(void ) mem_free_element(mem_store_t ms, void *eltpointer);
434  /**<  /**<
435   *  Releases an element back to the store.   *  Releases an element back to the store.
436   *  If you return the same pointer twice, we will have   *  If you return the same pointer twice, we will have
# Line 458  extern void mem_free_element(mem_store_t Line 458  extern void mem_free_element(mem_store_t
458   *  @return No return value.   *  @return No return value.
459   */   */
460    
461  extern void mem_clear_store(mem_store_t ms);  ASC_DLLSPEC(void ) mem_clear_store(mem_store_t ms);
462  /**<  /**<
463   *  Clears the books in ms. That is, we reset the ms to think   *  Clears the books in ms. That is, we reset the ms to think
464   *  that __all__ elements are freshly available and have never   *  that __all__ elements are freshly available and have never
# Line 481  extern void mem_clear_store(mem_store_t Line 481  extern void mem_clear_store(mem_store_t
481   *  @return No return value.   *  @return No return value.
482   */   */
483    
484  extern void mem_destroy_store(mem_store_t ms);  ASC_DLLSPEC(void ) mem_destroy_store(mem_store_t ms);
485  /**<  /**<
486   *  Deallocates everything associated with the ms.   *  Deallocates everything associated with the ms.
487   *  If mem_DEBUG is TRUE, it first verifies that all elements   *  If mem_DEBUG is TRUE, it first verifies that all elements

Legend:
Removed from v.592  
changed lines
  Added in v.593

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22