Пример #1
0
 public void SetDescriptor(PByteArray value)
 {
     PapillonPINVOKE.PDescriptor_SetDescriptor__SWIG_0(swigCPtr, PByteArray.getCPtr(value));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public void Append(PByteArray other)
 {
     PapillonPINVOKE.PByteArray_Append(swigCPtr, PByteArray.getCPtr(other));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
    public PResult Save(PByteArray outputBuffer, PImage.EFileFormat format)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_Save__SWIG_1(swigCPtr, PByteArray.getCPtr(outputBuffer), (int)format), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #4
0
    public PResult Load(PByteArray inputBuffer)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_Load__SWIG_1(swigCPtr, PByteArray.getCPtr(inputBuffer)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #5
0
    public static PResult FromString(string s, PByteArray a)
    {
        PResult ret = new PResult(PapillonPINVOKE.PByteArray_FromString(s, PByteArray.getCPtr(a)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #6
0
    public static PByteArray DecodeFromBase64(PByteArray base64)
    {
        PByteArray ret = new PByteArray(PapillonPINVOKE.PByteArray_DecodeFromBase64(PByteArray.getCPtr(base64)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
    public PResult Receive(PByteArray message)
    {
        PResult ret = new PResult(PapillonPINVOKE.PSocket_Receive__SWIG_1(swigCPtr, PByteArray.getCPtr(message)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #8
0
    public PResult Send(PByteArray message, string filter)
    {
        PResult ret = new PResult(PapillonPINVOKE.PSocket_Send__SWIG_2(swigCPtr, PByteArray.getCPtr(message), filter), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #9
0
    public PResult GetDescriptor(PByteArray value)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDescriptor_GetDescriptor__SWIG_0(swigCPtr, PByteArray.getCPtr(value)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #10
0
 public PByteArray(PByteArray other) : this(PapillonPINVOKE.new_PByteArray__SWIG_4(PByteArray.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #11
0
 public PMemoryStream(PByteArray buffer) : this(PapillonPINVOKE.new_PMemoryStream__SWIG_2(PByteArray.getCPtr(buffer)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #12
0
    public PResult WriteBytes(PByteArray sourceArray, int sourcePosition)
    {
        PResult ret = new PResult(PapillonPINVOKE.PByteStream_WriteBytes__SWIG_2(swigCPtr, PByteArray.getCPtr(sourceArray), sourcePosition), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #13
0
    public PResult ReadBytes(PByteArray destinationArray, int position, int n)
    {
        PResult ret = new PResult(PapillonPINVOKE.PByteStream_ReadBytes__SWIG_1(swigCPtr, PByteArray.getCPtr(destinationArray), position, n), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }