mirror of
https://github.com/pret/pokerevo.git
synced 2026-10-07 09:26:58 -04:00
26 lines
470 B
C
26 lines
470 B
C
#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
|