private IntPtr m_pDataVector; // Pointer to IF_DataVector object in unmanaged space #endregion Fields #region Constructors /// <summary> /// Db constructor. /// </summary> /// <param name="pDataVector"> /// Reference to an IF_Db object. /// </param> /// <param name="dbSystem"> /// DbSystem object that this Db object is associated with. /// </param> internal DataVector( IntPtr pDataVector, DbSystem dbSystem) { if (pDataVector == IntPtr.Zero) { throw new XFlaimException( "Invalid IF_DataVector reference"); } m_pDataVector = pDataVector; if (dbSystem == null) { throw new XFlaimException( "Invalid DbSystem reference"); } m_dbSystem = dbSystem; // Must call something inside of DbSystem. Otherwise, the // m_dbSystem object gets a compiler warning on linux because // it is not used anywhere. Other than that, there is really // no need to make the following call. if (m_dbSystem.getDbSystem() == IntPtr.Zero) { throw new XFlaimException( "Invalid DbSystem.IF_DbSystem object"); } }
private IntPtr m_pStats; // Pointer to XFLM_STATS object in unmanaged space #endregion Fields #region Constructors /// <summary> /// Constructor. /// </summary> /// <param name="pStats"> /// Pointer to an XFLM_STATS object in unmanaged space. /// </param> /// <param name="dbSystem"> /// DbSystem object that this DbSystemStats object is associated with. /// </param> internal DbSystemStats( IntPtr pStats, DbSystem dbSystem) { if (pStats == IntPtr.Zero) { throw new XFlaimException( "Invalid pointer to XFLM_STATS structure"); } m_pStats = pStats; if (dbSystem == null) { throw new XFlaimException( "Invalid DbSystem reference"); } m_dbSystem = dbSystem; // Must call something inside of DbSystem. Otherwise, the // m_dbSystem object gets a compiler warning on linux because // it is not used anywhere. Other than that, there is really // no need to make the following call. if (m_dbSystem.getDbSystem() == IntPtr.Zero) { throw new XFlaimException( "Invalid DbSystem.IF_DbSystem object"); } }