Ejemplo n.º 1
0
 public XsByteArray(XsByteArray other) : this(xsensdeviceapiPINVOKE.new_XsByteArray__SWIG_3(XsByteArray.getCPtr(other)), true)
 {
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void setRawBlob(XsByteArray data)
 {
     xsensdeviceapiPINVOKE.XsDataPacket_setRawBlob(swigCPtr, XsByteArray.getCPtr(data));
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
        public int read(XsByteArray buffer)
        {
            int ret = xsensdeviceapiPINVOKE.XsSocket_read__SWIG_1(swigCPtr, XsByteArray.getCPtr(buffer));

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 4
0
        public int writeTo(XsByteArray buffer, XsString hostname, ushort port)
        {
            int ret = xsensdeviceapiPINVOKE.XsSocket_writeTo__SWIG_0(swigCPtr, XsByteArray.getCPtr(buffer), XsString.getCPtr(hostname), port);

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 5
0
        public int readFrom(XsByteArray buffer, XsString hostname)
        {
            int ret = xsensdeviceapiPINVOKE.XsSocket_readFrom__SWIG_2(swigCPtr, XsByteArray.getCPtr(buffer), XsString.getCPtr(hostname));

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 6
0
        public int readFrom(XsByteArray buffer, XsString hostname, SWIGTYPE_p_unsigned_short port)
        {
            int ret = xsensdeviceapiPINVOKE.XsSocket_readFrom__SWIG_1(swigCPtr, XsByteArray.getCPtr(buffer), XsString.getCPtr(hostname), SWIGTYPE_p_unsigned_short.getCPtr(port));

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 7
0
        public XsByteArray componentsInformation()
        {
            XsByteArray ret = new XsByteArray(xsensdeviceapiPINVOKE.XsDevice_componentsInformation(swigCPtr), true);

            return(ret);
        }
Ejemplo n.º 8
0
        public XsByteArray rawMessage()
        {
            XsByteArray ret = new XsByteArray(xsensdeviceapiPINVOKE.XsMessage_rawMessage(swigCPtr), false);

            return(ret);
        }
        public XsByteArray rawBlob()
        {
            XsByteArray ret = new XsByteArray(xsensdeviceapiPINVOKE.XsDataPacket_rawBlob(swigCPtr), true);

            return(ret);
        }
Ejemplo n.º 10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(XsByteArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }