Пример #1
0
 public void WriteTo(IWriteStream output)
 {
     if (key != 0)
     {
         output.WriteRawTag(13);
         output.WriteSFixed32(key);
     }
     if (value != null)
     {
         output.WriteRawTag(18);
         output.WriteMessage(value);
     }
 }
Пример #2
0
 public void WriteTo(IWriteStream output)
 {
     if (point3map != null && point3map.Count != 0)
     {
         var entry = new Point3mapEntry();
         foreach (var itor in point3map)
         {
             entry.key   = itor.Key;
             entry.value = itor.Value;
             output.WriteRawTag(10);
             output.WriteMessage(entry);
         }
     }
 }