public static SWIGTYPE_p_void convert(SWIGTYPE_p_BSONTYPE fromType, SWIGTYPE_p_BSONTYPE toType, SWIGTYPE_p_void value) { IntPtr cPtr = djonwrapperPINVOKE.convert(SWIGTYPE_p_BSONTYPE.getCPtr(fromType), SWIGTYPE_p_BSONTYPE.getCPtr(toType), SWIGTYPE_p_void.getCPtr(value)); SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual SWIGTYPE_p_BSONTYPE type(string arg0) { SWIGTYPE_p_BSONTYPE ret = new SWIGTYPE_p_BSONTYPE(djonwrapperPINVOKE.BSONObj_type(swigCPtr, arg0), true); if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual SWIGTYPE_p_BSONContent getContent(string arg0, SWIGTYPE_p_BSONTYPE arg1) { IntPtr cPtr = djonwrapperPINVOKE.BSONObj_getContent__SWIG_1(swigCPtr, arg0, SWIGTYPE_p_BSONTYPE.getCPtr(arg1)); SWIGTYPE_p_BSONContent ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_BSONContent(cPtr, false); if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(SWIGTYPE_p_BSONTYPE obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }