Files
bluelib/ds/buffer.h

18 lines
379 B
C
Raw Normal View History

#ifndef _BLUELIB_BUFFER_H_
#define _BLUELIB_BUFFER_H_
#include "../object.h"
struct b_buffer {
struct b_dsref buf_base;
/* 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