public void AddItemsToStream <T>(ManualBlittableJsonDocumentBuilder <T> writer) where T : struct, IUnmanagedWriteBuffer
 {
     for (var i = 0; i < _count; i++)
     {
         var tuple = GetValueTokenTupleByIndex(i);
         writer.WriteValue(tuple.Item2, tuple.Item1);
     }
 }
Example #2
0
 public void AddItemsToStream <T>(ManualBlittableJsonDocumentBuilder <T> writer)
     where T : struct, IUnmanagedWriteBuffer
 {
     for (var i = 0; i < Count; i++)
     {
         var prop = new PropertyDetails();
         GetPropertyByIndex(i, ref prop);
         writer.WritePropertyName(prop.Name);
         writer.WriteValue(ProcessTokenTypeFlags(prop.Token), prop.Value);
     }
 }