Пример #1
0
 public PByteStream(PByteStream other) : this(PapillonPINVOKE.new_PByteStream__SWIG_1(PByteStream.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
    public PResult Read(PByteStream arg0)
    {
        PResult ret = new PResult(PapillonPINVOKE.PResult_Read__SWIG_1(swigCPtr, PByteStream.getCPtr(arg0)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #3
0
    public PResult Read(PByteStream arg0, ESerialisationFormat format)
    {
        PResult ret = new PResult(PapillonPINVOKE.PResult_Read__SWIG_0(swigCPtr, PByteStream.getCPtr(arg0), (int)format), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #4
0
    public PResult Write(PByteStream os)
    {
        PResult ret = new PResult(PapillonPINVOKE.PResult_Write__SWIG_1(swigCPtr, PByteStream.getCPtr(os)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #5
0
    public static PResult ReadClassIdAndCheck(PByteStream arg0, ushort expectedClassId)
    {
        PResult ret = new PResult(PapillonPINVOKE.PByteStream_ReadClassIdAndCheck(PByteStream.getCPtr(arg0), expectedClassId), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #6
0
    public PResult Write(PByteStream os, ESerialisationFormat format)
    {
        PResult ret = new PResult(PapillonPINVOKE.PObject_Write__SWIG_0(swigCPtr, PByteStream.getCPtr(os), (int)format), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
    public PObject ReadObject(PByteStream arg0, PResult result)
    {
        PObject ret = new PObject(PapillonPINVOKE.PObject_ReadObject(swigCPtr, PByteStream.getCPtr(arg0), PResult.getCPtr(result)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PByteStream obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }