add_attribute


Description:

public void add_attribute (Attribute attr)

Add an attribute to the builder.

The attribute is added unconditionally whether or not an attribute with the same type already exists on the builder.

The attr attribute must have been created or owned by the Gck library. If you call this function on an arbitrary `GckAttribute` that is allocated on the stack or elsewhere, then this will result in undefined behavior.

As an optimization, the attribute memory value is automatically shared between the attribute and the builder.

Parameters:

this

the builder

attr

the attribute to add