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 90 of file avs.h.

Field Documentation

◆ magic

uint32_t magic

Definition at line 91 of file avs.h.

◆ count

size_t count

valid entries in avp

Definition at line 92 of file avs.h.

◆ max

size_t max

allocated slots in avp

Definition at line 93 of file avs.h.

◆ readonly_min

void* readonly_min

Definition at line 94 of file avs.h.

◆ readonly_max

void* readonly_max

Definition at line 95 of file avs.h.

◆ avp

array[max]

Definition at line 96 of file avs.h.


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