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

                while ((tag = input.ReadTag()) != 0)
                {
                    switch (tag)
                    {
                    case 13:
                    {
                        key = input.ReadSFixed32();
                    }
                    break;

                    case 18:
                    {
                        if (value == null)
                        {
                            value = new Point3();
                        }
                        input.ReadMessage(value);
                    }
                    break;

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

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

                default:
                    input.SkipLastField(tag);
                    break;
                }
            }
        }
예제 #3
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.ReadSFixed32()); });
                }
                break;

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