BRL-CAD
bu_attribute_value_set Struct Reference

#include <avs.h>

Collaboration diagram for bu_attribute_value_set:
[legend]

Data Fields

uint32_t magic
 
size_t count
 
size_t max
 
void * readonly_min
 
void * readonly_max
 
struct bu_attribute_value_pairavp
 

Detailed Description

A variable-sized attribute-value-pair array.

avp points to an array of [max] slots. The interface routines will realloc to extend as needed.

In general, each of the names and values is a local copy made with bu_strdup(), and each string needs to be freed individually. However, if a name or value pointer is between readonly_min and readonly_max, then it is part of a big malloc block that is being freed by the caller, and should not be individually freed.

Definition at line 83 of file avs.h.

Field Documentation

size_t max
void* readonly_min

Definition at line 87 of file avs.h.

Referenced by bu_avs_init(), and bu_avs_init_empty().

void* readonly_max

Definition at line 88 of file avs.h.

Referenced by bu_avs_init(), and bu_avs_init_empty().


The documentation for this struct was generated from the following file: