lzma/7zAlloc.h
changeset 775 a8cc6b8a8e9c
child 780 8d029fecde3a
equal deleted inserted replaced
774:916c2e81e77f 775:a8cc6b8a8e9c
       
     1 /* 7zAlloc.h */
       
     2 
       
     3 #ifndef __7Z_ALLOC_H
       
     4 #define __7Z_ALLOC_H
       
     5 
       
     6 #include <stddef.h>
       
     7 
       
     8 typedef struct _ISzAlloc
       
     9 {
       
    10   void *(*Alloc)(size_t size);
       
    11   void (*Free)(void *address); /* address can be 0 */
       
    12 } ISzAlloc;
       
    13 
       
    14 void *SzAlloc(size_t size);
       
    15 void SzFree(void *address);
       
    16 
       
    17 void *SzAllocTemp(size_t size);
       
    18 void SzFreeTemp(void *address);
       
    19 
       
    20 #endif
       
    21