Exemplo n.º 1
0
 public void WriteTo(IWriteStream output)
 {
     if (value != null && value.Count != 0)
     {
         output.WriteRawTag(10);
         int _total_pack_size_ = 0;
         for (int i = 0; i < value.Count; ++i)
         {
             _total_pack_size_ += ComputeSize.ComputeInt32Size(value[i]);
         }
         output.WriteInt32(_total_pack_size_);
         for (int i = 0; i < value.Count; ++i)
         {
             output.WriteInt32(value[i]);
         }
     }
 }
Exemplo n.º 2
0
 public void WriteTo(IWriteStream output)
 {
     if (value != 0)
     {
         output.WriteRawTag(8);
         output.WriteInt32(value);
     }
 }
Exemplo n.º 3
0
 public void WriteTo(IWriteStream output)
 {
     if (value != null && value.Count != 0)
     {
         output.WriteRawTag(10);
         output.WriteInt32(8 * value.Count);
         for (int i = 0; i < value.Count; ++i)
         {
             output.WriteSFixed64(value[i]);
         }
     }
 }