Searched refs:PurgMem (Results 1 – 5 of 5) sorted by relevance
/commonlibrary/memory_utils/libpurgeablemem/c/include/ |
D | purgeable_mem_c.h | 29 struct PurgMem; 47 struct PurgMem *PurgMemCreate(size_t size, PurgMemModifyFunc func, void *funcPara); 55 bool PurgMemDestroy(struct PurgMem *purgObj); 67 bool PurgMemBeginRead(struct PurgMem *purgObj); 75 void PurgMemEndRead(struct PurgMem *purgObj); 87 bool PurgMemBeginWrite(struct PurgMem *purgObj); 95 void PurgMemEndWrite(struct PurgMem *purgObj); 105 void *PurgMemGetContent(struct PurgMem *purgObj); 113 size_t PurgMemGetContentSize(struct PurgMem *purgObj); 123 bool PurgMemAppendModify(struct PurgMem *purgObj, PurgMemModifyFunc func, void *funcPara);
|
/commonlibrary/memory_utils/libpurgeablemem/c/src/ |
D | purgeable_memory.c | 26 typedef struct PurgMem OH_PurgeableMemory; 27 typedef struct PurgMem PurgMem; typedef 37 return PurgMemDestroy((PurgMem *)purgObj); in OH_PurgeableMemory_Destroy() 42 return PurgMemBeginRead((PurgMem *)purgObj); in OH_PurgeableMemory_BeginRead() 47 PurgMemEndRead((PurgMem *)purgObj); in OH_PurgeableMemory_EndRead() 52 return PurgMemBeginWrite((PurgMem *)purgObj); in OH_PurgeableMemory_BeginWrite() 57 PurgMemEndWrite((PurgMem *)purgObj); in OH_PurgeableMemory_EndWrite() 62 return PurgMemGetContent((PurgMem *)purgObj); in OH_PurgeableMemory_GetContent() 67 return PurgMemGetContentSize((PurgMem *)purgObj); in OH_PurgeableMemory_ContentSize() 73 return PurgMemAppendModify((PurgMem *)purgObj, func, funcPara); in OH_PurgeableMemory_AppendModify()
|
D | purgeable_mem_c.c | 33 struct PurgMem { struct 42 static inline void LogPurgMemInfo(struct PurgMem *obj) in LogPurgMemInfo() argument 58 static bool IsPurgMemPtrValid_(struct PurgMem *purgObj); 59 static bool IsPurged(struct PurgMem *purgObj); 62 static struct PurgMem *PurgMemCreate_(size_t len, struct PurgMemBuilder *builder) in PurgMemCreate_() 65 struct PurgMem *pugObj = NULL; in PurgMemCreate_() 66 pugObj = (struct PurgMem *)malloc(sizeof(struct PurgMem)); in PurgMemCreate_() 119 struct PurgMem *PurgMemCreate(size_t len, PurgMemModifyFunc func, void *funcPara) in PurgMemCreate() 127 struct PurgMem *purgMemObj = PurgMemCreate_(len, NULL); in PurgMemCreate() 145 bool PurgMemDestroy(struct PurgMem *purgObj) in PurgMemDestroy() [all …]
|
/commonlibrary/memory_utils/libpurgeablemem/test/ |
D | purgeable_c_test.cpp | 45 void LoopPrintAlphabet(struct PurgMem *pdata, unsigned int loopCount); 48 void ModifyPurgMemByFunc(struct PurgMem *pdata, PurgMemModifyFunc Modfunc, void *param); 78 struct PurgMem *pobj1 = PurgMemCreate(27, InitAlphabet, &initPara); 85 struct PurgMem *pobj2 = PurgMemCreate(27, InitAlphabet, &initPara); 112 struct PurgMem *pobj = PurgMemCreate(27, InitAlphabet, &initPara); 133 struct PurgMem *pobj = PurgMemCreate(27, InitAlphabet, &initPara); 156 struct PurgMem *pobj = PurgMemCreate(27, InitAlphabet, &initPara); 222 void LoopPrintAlphabet(struct PurgMem *pdata, unsigned int loopCount) in LoopPrintAlphabet() 269 void ModifyPurgMemByFunc(struct PurgMem *pdata, PurgMemModifyFunc Modfunc, void *param) in ModifyPurgMemByFunc()
|
/commonlibrary/memory_utils/libpurgeablemem/interfaces/kits/c/ |
D | purgeable_memory.h | 55 typedef struct PurgMem OH_PurgeableMemory;
|