AttributeSlot GetAttributeSlot ()
{
if (attributeCount == attributes.Length) {
AttributeSlot [] tmp = new AttributeSlot [attributeCount << 1];
Array.Copy (attributes, tmp, attributeCount);
attributes = tmp;
}
if (attributes [attributeCount] == null)
attributes [attributeCount] = new AttributeSlot ();
AttributeSlot slot = attributes [attributeCount];
slot.Clear ();
attributeCount++;
return slot;
}