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

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

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

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

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