summaryrefslogtreecommitdiff
path: root/include/darray.h
blob: 2859cd43b281824b05ac30dc96093776c1c0a555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef POKEREVO_DARRAY_H
#define POKEREVO_DARRAY_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct DArray {
    s32 size;
    s32 capacity;
    u32 elementSz;
    s32 growAmount;
    s32 unk10; // TODO destructor callback?
    char *buf;
} DArray;

void *ArrayNew(u32 p1, s32 p2, s32 p3);
void *ArrayNth(DArray *p1, s32 p2);
void *ArrayMapBackwards2(DArray *p1, s32 p2, s32 p3);

#ifdef __cplusplus
}
#endif

#endif //POKEREVO_DARRAY_H