Skip to content

MemoryPool

29thnight edited this page Nov 28, 2025 · 1 revision

MemoryPool

간단 설명: 고정 블록 크기의 커스텀 메모리 풀. 빠른 할당/해제를 위해 프리 슬롯 리스트와 블록 체인을 사용.

특성

  • 템플릿: MemoryPool<T, BlockSize>rebind
  • 정책: PoolPolicy<T, BlockSize>로 최소 블록 크기 검사

API

메서드 설명
allocate/deallocate(n) 슬롯 단위 할당/반환, 프리리스트 우선 사용
construct/destroy(p, args...) 배치 new/소멸 호출
allocate_element(args...) / deallocate_element(p) 생성/파괴 포함 편의 함수
기타 address, max_size, 이동 대입

내부: Node 유니온으로 element/next를 공유. allocateBlock()로 블록 할당 및 정렬 보정.

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally