16 : m_entries(
nullptr), m_entryCount(0), m_sectionHeader(header) {}
22 for (
size_t i = 0; i < m_entryCount; ++i) {
30 [[nodiscard]] T *get(
u16 i)
const {
31 return i < m_entryCount ? m_entries[i] :
nullptr;
34 [[nodiscard]] TData *getData(
u16 i)
const {
35 return i < m_entryCount ? m_entries[i]->data() :
nullptr;
38 [[nodiscard]]
u16 size()
const {
42 void init(
const TData *start,
u16 count) {
45 m_entries =
new T *[count];
48 for (
u16 i = 0; i < count; ++i) {
49 m_entries[i] =
new T(&start[i]);