2025-04-11 13:56:09 +01:00
|
|
|
#ifndef _BLUELIB_BUFFER_H_
|
|
|
|
|
#define _BLUELIB_BUFFER_H_
|
|
|
|
|
|
|
|
|
|
#include "../object.h"
|
|
|
|
|
|
|
|
|
|
struct b_buffer {
|
2025-08-09 19:57:42 +01:00
|
|
|
struct b_dsref buf_base;
|
2025-04-11 13:56:09 +01:00
|
|
|
/* number of items in buffer */
|
|
|
|
|
unsigned int buf_len;
|
|
|
|
|
/* maximum number of items that can currently be stored in array */
|
|
|
|
|
unsigned int buf_cap;
|
|
|
|
|
/* the size of each individual item in the buffer */
|
|
|
|
|
unsigned int buf_itemsz;
|
|
|
|
|
void *buf_data;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|