public abstract void Serialize(MessageWithRepeatedItem item);
 public override void Deserialize(out MessageWithRepeatedItem item)
 {
     item = Serializer.Deserialize<MessageWithRepeatedItem>(_reader);
 }
 public abstract void Deserialize(out MessageWithRepeatedItem item);
 public override void Serialize(MessageWithRepeatedItem item)
 {
     Serializer.Serialize(_writer, item);
 }
示例#5
0
 public override void Serialize(MessageWithRepeatedItem item)
 {
     Serializer.Serialize(Stream.Null, item);
 }
 public override void Deserialize(out MessageWithRepeatedItem item)
 {
     item = new MessageWithRepeatedItem();
     for(int i = 0; i != RepeatedItemDeserializationBenchmark.Items; ++i)
         item.Value.Add(_reader.ReadInt32());
 }
 public override void Serialize(MessageWithRepeatedItem item)
 {
     item.Value.ForEach(x => _writer.WriteVarint(x));
 }
 public override void Deserialize(out MessageWithRepeatedItem item)
 {
     throw new NotSupportedException();
 }