コード例 #1
0
        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;
            }
        }
コード例 #2
0
 internal void Clear()
 {
     Count   = 0;
     Current = null;
 }