|
ncloader
0.1
|
The simplest memory allocator에 대한 협력 다이어그램:데이타 구조 | |
| struct | chunk |
| Chunk 자료구조 더 자세히 ... | |
| struct | allocator |
| Allocator handle 자료구조 더 자세히 ... | |
함수 | |
| struct allocator * | allocator_init (unsigned int base, unsigned int size) |
| Allocator 초기화를 한다. 더 자세히 ... | |
| int | allocator_fini (struct allocator *handle) |
| Allocator 를 finalize 시킨다. 더 자세히 ... | |
| void * | allocator_alloc (struct allocator *handle, int size) |
| 메모리를 할당 한다. 더 자세히 ... | |
| void | allocator_free (struct allocator *handle, void *ptr) |
| 할당한 메모리를 해제한다. 더 자세히 ... | |
| int | allocator_chunk_size (void *ptr) |
| 할당된 메모리가 가진 크기를 얻는다. 더 자세히 ... | |
| void * allocator_alloc | ( | struct allocator * | handle, |
| int | size | ||
| ) |
메모리를 할당 한다.
| [in] | handle | |
| [in] | size |
| NULL | |
| ptr | Allocated address |
We call this "INTERNAL FRAGMENTATION".
이 함수를 호출하는 함수들에 대한 그래프입니다.:| int allocator_chunk_size | ( | void * | ptr) |
할당된 메모리가 가진 크기를 얻는다.
| [in] | ptr |
| size |
이 함수를 호출하는 함수들에 대한 그래프입니다.:| int allocator_fini | ( | struct allocator * | handle) |
Allocator 를 finalize 시킨다.
| [in] | handle |
| 0 |
| void allocator_free | ( | struct allocator * | handle, |
| void * | ptr | ||
| ) |
할당한 메모리를 해제한다.
| [in] | handle | |
| [in] | ptr |
| none |
이 함수를 호출하는 함수들에 대한 그래프입니다.:| struct allocator * allocator_init | ( | unsigned int | base, |
| unsigned int | size | ||
| ) |
Allocator 초기화를 한다.
| [in] | base | |
| [in] | size |
| handle | |
| NULL |
이 함수를 호출하는 함수들에 대한 그래프입니다.: