Beispiel #1
0
        public override ResultsDeviceDetectionSwig processDeviceDetection(string userAgent)
        {
            global::System.IntPtr      cPtr = DeviceDetectionHashEngineModulePINVOKE.EngineHashSwig_processDeviceDetection__SWIG_1(swigCPtr, userAgent);
            ResultsDeviceDetectionSwig ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ResultsDeviceDetectionSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual ResultsDeviceDetectionSwig processDeviceDetection(EvidenceDeviceDetectionSwig evidence)
        {
            global::System.IntPtr      cPtr = DeviceDetectionHashEngineModulePINVOKE.EngineDeviceDetectionSwig_processDeviceDetection__SWIG_0(swigCPtr, EvidenceDeviceDetectionSwig.getCPtr(evidence));
            ResultsDeviceDetectionSwig ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ResultsDeviceDetectionSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ResultsDeviceDetectionSwig obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }