Example #1
0
        public void MergeFrom(IReadStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                case 8:
                {
                    value = input.ReadInt32();
                }
                break;

                default:
                    input.SkipLastField(tag);
                    break;
                }
            }
        }
Example #2
0
        public void MergeFrom(IReadStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                case 10:
                {
                    if (value == null)
                    {
                        value = new List <int>();
                    }
                    input.ReadMessage(() => { value.Add(input.ReadInt32()); });
                }
                break;

                default:
                    input.SkipLastField(tag);
                    break;
                }
            }
        }