Category: p_delete_mem_block

Realization of a fixed memory pool (C ++) 0

Realization of a fixed memory pool (C ++)

Hits: 0head File: #ifndef MEM_POOL_H #define MEM_POOL_H #include <stdio.h> #include <stdlib.h> #include <stdint.h> struct Mem_Block { uint32_t n_Mem_Block_Size; uint32_t n_Free_Mem_Page_Num; uint32_t n_First_Free_Mem_Page_ID; Mem_Block *p_Next_Mem_Block; char data_Region[1]; static void* operator new (size_t, uint32_t n_Data_Type_Size, uint32_t...