Пример #1
0
 public byte[] GetProtoBufferBytes()
 {
     CheckRequiredFields();
     ProtoBufferWriter writer = new ProtoBufferWriter();
     writer.Write(1,(int)AFooEnum);
     writer.Write(2,Foo);
     writer.Write(3,ValueList);
     return writer.GetProtoBufferBytes();
 }
Пример #2
0
 public byte[] GetProtoBufferBytes()
 {
     CheckRequiredFields();
     ProtoBufferWriter writer = new ProtoBufferWriter();
     writer.Write(1,(int)RequiredEnum);
     writer.Write(2,(int)OptionalEnum);
     foreach(FooEnum v in RepeatedEnumList)
     {
         writer.Write(3,(int)v);
     }
     return writer.GetProtoBufferBytes();
 }