コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId != 0L)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (PayloadType != 0)
            {
                hash ^= PayloadType.GetHashCode();
            }
            if (EngineName.Length != 0)
            {
                hash ^= EngineName.GetHashCode();
            }
            if (Payload.Length != 0)
            {
                hash ^= Payload.GetHashCode();
            }
            if (engineFields_ != null)
            {
                hash ^= EngineFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (ShapeType != global::Physics.Telemetry.Serialised.ShapeTypePacket.Obb)
            {
                hash ^= ShapeType.GetHashCode();
            }
            if (obbShape_ != null)
            {
                hash ^= ObbShape.GetHashCode();
            }
            if (tetrahedronShape_ != null)
            {
                hash ^= TetrahedronShape.GetHashCode();
            }
            if (convexHullShape_ != null)
            {
                hash ^= ConvexHullShape.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (Format.Length != 0)
            {
                hash ^= Format.GetHashCode();
            }
            if (Data.Length != 0)
            {
                hash ^= Data.GetHashCode();
            }
            if (MeasurementTime != 0D)
            {
                hash ^= MeasurementTime.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
ファイル: Pointcloud.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (IsDense != false)
            {
                hash ^= IsDense.GetHashCode();
            }
            hash ^= point_.GetHashCode();
            if (MeasurementTime != 0D)
            {
                hash ^= MeasurementTime.GetHashCode();
            }
            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (stamp_ != null)
            {
                hash ^= Stamp.GetHashCode();
            }
            return(hash);
        }
コード例 #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            hash ^= rigidBodies_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId != 0L)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            hash ^= results_.GetHashCode();
            if (engineFields_ != null)
            {
                hash ^= EngineFields.GetHashCode();
            }
            return(hash);
        }
コード例 #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (ChildFrameId.Length != 0)
            {
                hash ^= ChildFrameId.GetHashCode();
            }
            if (FilePath.Length != 0)
            {
                hash ^= FilePath.GetHashCode();
            }
            if (Enable != false)
            {
                hash ^= Enable.GetHashCode();
            }
            return(hash);
        }
コード例 #9
0
ファイル: MessageHeader.cs プロジェクト: RythBlade/odin
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (MessageType != global::Physics.Telemetry.Serialised.MessageHeaderMessage.Types.MessageType.RigidBodyUpdate)
            {
                hash ^= MessageType.GetHashCode();
            }
            if (DataSize != 0)
            {
                hash ^= DataSize.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FrameId != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (ConsumedFrameTime != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ConsumedFrameTime);
            }
            if (FrameProcessingTime != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FrameProcessingTime);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (MeasurementTime != 0D)
            {
                hash ^= MeasurementTime.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Encoding.Length != 0)
            {
                hash ^= Encoding.GetHashCode();
            }
            if (Step != 0)
            {
                hash ^= Step.GetHashCode();
            }
            if (Data.Length != 0)
            {
                hash ^= Data.GetHashCode();
            }
            return(hash);
        }
コード例 #12
0
ファイル: Config.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (CameraDev.Length != 0)
            {
                hash ^= CameraDev.GetHashCode();
            }
            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            if (PixelFormat.Length != 0)
            {
                hash ^= PixelFormat.GetHashCode();
            }
            if (IoMethod != 0)
            {
                hash ^= IoMethod.GetHashCode();
            }
            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            if (FrameRate != 0)
            {
                hash ^= FrameRate.GetHashCode();
            }
            if (Monochrome != false)
            {
                hash ^= Monochrome.GetHashCode();
            }
            if (Brightness != 0)
            {
                hash ^= Brightness.GetHashCode();
            }
            if (Contrast != 0)
            {
                hash ^= Contrast.GetHashCode();
            }
            if (Saturation != 0)
            {
                hash ^= Saturation.GetHashCode();
            }
            if (Sharpness != 0)
            {
                hash ^= Sharpness.GetHashCode();
            }
            if (Gain != 0)
            {
                hash ^= Gain.GetHashCode();
            }
            if (AutoFocus != false)
            {
                hash ^= AutoFocus.GetHashCode();
            }
            if (Focus != 0)
            {
                hash ^= Focus.GetHashCode();
            }
            if (AutoExposure != false)
            {
                hash ^= AutoExposure.GetHashCode();
            }
            if (Exposure != 0)
            {
                hash ^= Exposure.GetHashCode();
            }
            if (AutoWhiteBalance != false)
            {
                hash ^= AutoWhiteBalance.GetHashCode();
            }
            if (WhiteBalance != 0)
            {
                hash ^= WhiteBalance.GetHashCode();
            }
            if (BytesPerPixel != 0)
            {
                hash ^= BytesPerPixel.GetHashCode();
            }
            if (TriggerInternal != 0)
            {
                hash ^= TriggerInternal.GetHashCode();
            }
            if (TriggerFps != 0)
            {
                hash ^= TriggerFps.GetHashCode();
            }
            if (ChannelName.Length != 0)
            {
                hash ^= ChannelName.GetHashCode();
            }
            if (DeviceWaitMs != 0)
            {
                hash ^= DeviceWaitMs.GetHashCode();
            }
            if (SpinRate != 0)
            {
                hash ^= SpinRate.GetHashCode();
            }
            if (OutputType != 0)
            {
                hash ^= OutputType.GetHashCode();
            }
            if (compressConf_ != null)
            {
                hash ^= CompressConf.GetHashCode();
            }
            return(hash);
        }