2024-10-24 19:24:54 +01:00
|
|
|
#ifndef _BLUELIB_ARRAY_H_
|
|
|
|
|
#define _BLUELIB_ARRAY_H_
|
|
|
|
|
|
|
|
|
|
#include "../object.h"
|
|
|
|
|
|
|
|
|
|
struct b_array {
|
2025-08-09 19:57:42 +01:00
|
|
|
struct b_dsref ar_base;
|
2025-06-27 21:47:55 +01:00
|
|
|
/* number of items in array */
|
|
|
|
|
unsigned int ar_len;
|
|
|
|
|
/* maximum number of items that can currently be stored in array */
|
|
|
|
|
unsigned int ar_cap;
|
2025-08-09 19:57:42 +01:00
|
|
|
struct b_dsref **ar_data;
|
2024-10-24 19:24:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|