예제 #1
0
파일: Slam.cs 프로젝트: HotODEN/android
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    if (camera_ == null)
                    {
                        Camera = new global::Camera();
                    }
                    input.ReadMessage(Camera);
                    break;
                }

                case 18: {
                    points_.AddEntriesFrom(ref input, _repeated_points_codec);
                    break;
                }

                case 24: {
                    State = (global::TrackingState)input.ReadEnum();
                    break;
                }
                }
            }
        }
예제 #2
0
파일: Api.cs 프로젝트: HotODEN/android
 public void MergeFrom(Request other)
 {
     if (other == null)
     {
         return;
     }
     if (other.UserId != 0UL)
     {
         UserId = other.UserId;
     }
     if (other.camera_ != null)
     {
         if (camera_ == null)
         {
             Camera = new global::Camera();
         }
         Camera.MergeFrom(other.Camera);
     }
     if (other.frame_ != null)
     {
         if (frame_ == null)
         {
             Frame = new global::PNGFrame();
         }
         Frame.MergeFrom(other.Frame);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #3
0
파일: Slam.cs 프로젝트: HotODEN/android
 public void MergeFrom(TrackResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.camera_ != null)
     {
         if (camera_ == null)
         {
             Camera = new global::Camera();
         }
         Camera.MergeFrom(other.Camera);
     }
     points_.Add(other.points_);
     if (other.State != global::TrackingState.NoImagesYet)
     {
         State = other.State;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #4
0
파일: Api.cs 프로젝트: HotODEN/android
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    UserId = input.ReadUInt64();
                    break;
                }

                case 18: {
                    if (camera_ == null)
                    {
                        Camera = new global::Camera();
                    }
                    input.ReadMessage(Camera);
                    break;
                }

                case 26: {
                    if (frame_ == null)
                    {
                        Frame = new global::PNGFrame();
                    }
                    input.ReadMessage(Frame);
                    break;
                }
                }
            }
    #endif
        }
예제 #5
0
파일: Api.cs 프로젝트: HotODEN/android
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 8: {
                    UserId = input.ReadUInt64();
                    break;
                }

                case 18: {
                    if (camera_ == null)
                    {
                        Camera = new global::Camera();
                    }
                    input.ReadMessage(Camera);
                    break;
                }

                case 26: {
                    if (frame_ == null)
                    {
                        Frame = new global::PNGFrame();
                    }
                    input.ReadMessage(Frame);
                    break;
                }
                }
            }
        }
예제 #6
0
파일: Slam.cs 프로젝트: HotODEN/android
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (camera_ == null)
                    {
                        Camera = new global::Camera();
                    }
                    input.ReadMessage(Camera);
                    break;
                }

                case 18: {
                    points_.AddEntriesFrom(input, _repeated_points_codec);
                    break;
                }

                case 24: {
                    State = (global::TrackingState)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }