52#define BU_VLB_NULL ((struct bu_vlb *)0)
57#define BU_CK_VLB(_vp) BU_CKMAG(_vp, BU_VLB_MAGIC, "bu_vlb")
62#define BU_VLB_INIT(_vp) { \
63 (_vp)->magic = BU_VLB_MAGIC; \
65 (_vp)->bufCapacity = (_vp)->nextByte = 0; \
72#define BU_VLB_INIT_ZERO { BU_VLB_MAGIC, NULL, 0, 0 }
80#define BU_VLB_IS_INITIALIZED(_vp) (((struct bu_vlb *)(_vp) != BU_VLB_NULL) && ((_vp)->magic == BU_VLB_MAGIC))
109 unsigned char *start,
Header file for the BRL-CAD common definitions.
unsigned char * bu_vlb_addr(struct bu_vlb *vlb)
void bu_pr_vlb(const char *title, const struct bu_vlb *vlb)
void bu_vlb_initialize(struct bu_vlb *vlb, size_t initialSize)
void bu_vlb_print(struct bu_vlb *vlb, FILE *fd)
void bu_vlb_reset(struct bu_vlb *vlb)
void bu_vlb_free(struct bu_vlb *vlb)
size_t bu_vlb_buflen(struct bu_vlb *vlb)
void bu_vlb_init(struct bu_vlb *vlb)
void bu_vlb_write(struct bu_vlb *vlb, unsigned char *start, size_t len)
Global registry of recognized magic numbers.