public PByteStream(PByteStream other) : this(PapillonPINVOKE.new_PByteStream__SWIG_1(PByteStream.getCPtr(other)), true) { if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } }
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); }
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); }
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); }
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); }
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); }
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); }
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); }