代码注释 #36
|
|
@ -41,9 +41,11 @@ typedef struct MemoryContextMethods {
|
|||
void (*init)(MemoryContext context);
|
||||
void (*reset)(MemoryContext context);
|
||||
void (*delete_context)(MemoryContext context);
|
||||
/* Gets the MemoryContext block size*/
|
||||
Size (*get_chunk_space)(MemoryContext context, void* pointer);
|
||||
bool (*is_empty)(MemoryContext context);
|
||||
void (*stats)(MemoryContext context, int level);
|
||||
/* MemoryContext exception check*/
|
||||
#ifdef MEMORY_CONTEXT_CHECKING
|
||||
void (*check)(MemoryContext context);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue