internal void Add() { if (attributes.Count > Count) { var existingAttributeBuffer = attributes[Count]; existingAttributeBuffer.Clear(); Count++; Current = existingAttributeBuffer; } else { var newAttributeBuffer = new AttributeBuffer(); attributes.Add(newAttributeBuffer); Count++; Current = newAttributeBuffer; } }
internal void Clear() { Count = 0; Current = null; }