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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                case 10:
                {
                    if (point3map == null)
                    {
                        point3map = new Dictionary <int, Point3>();
                    }
                    var entry = new Point3mapEntry();
                    input.ReadMessage(entry);
                    point3map[entry.key] = entry.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:
                    {
                        key = input.ReadSFixed32();
                    }
                    break;

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

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

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

                case 21:
                {
                    y = input.ReadFloat();
                }
                break;

                case 29:
                {
                    z = input.ReadFloat();
                }
                break;

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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField(tag);
                    break;
                }
            }
        }
示例#5
0
        public void MergeFrom(IReadStream input)
        {
            uint tag;

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

                default:
                    input.SkipLastField(tag);
                    break;
                }
            }
        }
示例#6
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;
                }
            }
        }