Example #1
0
        /// <summary>
        /// Calculates the native version of the structure.
        /// </summary>
        /// <returns>The native version of the structure.</returns>
        internal NATIVE_DBINFOMISC4 GetNativeDbinfomisc4()
        {
            NATIVE_DBINFOMISC4 native = new NATIVE_DBINFOMISC4();

            native.dbinfo = this.GetNativeDbinfomisc();

            unchecked
            {
                native.genMinRequired       = (uint)this._genMinRequired;
                native.genMaxRequired       = (uint)this._genMaxRequired;
                native.logtimeGenMaxCreate  = this._logtimeGenMaxCreate;
                native.ulRepairCount        = (uint)this._ulRepairCount;
                native.logtimeRepair        = this._logtimeRepair;
                native.ulRepairCountOld     = (uint)this._ulRepairCountOld;
                native.ulECCFixSuccess      = (uint)this._ulECCFixSuccess;
                native.logtimeECCFixSuccess = this._logtimeECCFixSuccess;
                native.ulECCFixSuccessOld   = (uint)this._ulECCFixSuccessOld;
                native.ulECCFixFail         = (uint)this._ulECCFixFail;
                native.logtimeECCFixFail    = this._logtimeECCFixFail;
                native.ulECCFixFailOld      = (uint)this._ulECCFixFailOld;
                native.ulBadChecksum        = (uint)this._ulBadChecksum;
                native.logtimeBadChecksum   = this._logtimeBadChecksum;
                native.ulBadChecksumOld     = (uint)this._ulBadChecksumOld;
                native.genCommitted         = (uint)this._genCommitted;
                native.bkinfoCopyPrev       = this._bkinfoCopyPrev;
                native.bkinfoDiffPrev       = this._bkinfoDiffPrev;
            }

            return(native);
        }
Example #2
0
        /// <summary>
        /// Sets the members of this object from a native object.
        /// </summary>
        /// <param name="native">The native object.</param>
        internal void SetFromNativeDbinfoMisc(ref NATIVE_DBINFOMISC4 native)
        {
            this.SetFromNativeDbinfoMisc(ref native.dbinfo);

            unchecked
            {
                this._genMinRequired       = (int)native.genMinRequired;
                this._genMaxRequired       = (int)native.genMaxRequired;
                this._logtimeGenMaxCreate  = native.logtimeGenMaxCreate;
                this._ulRepairCount        = (int)native.ulRepairCount;
                this._logtimeRepair        = native.logtimeRepair;
                this._ulRepairCountOld     = (int)native.ulRepairCountOld;
                this._ulECCFixSuccess      = (int)native.ulECCFixSuccess;
                this._logtimeECCFixSuccess = native.logtimeECCFixSuccess;
                this._ulECCFixSuccessOld   = (int)native.ulECCFixSuccessOld;
                this._ulECCFixFail         = (int)native.ulECCFixFail;
                this._logtimeECCFixFail    = native.logtimeECCFixFail;
                this._ulECCFixFailOld      = (int)native.ulECCFixFailOld;
                this._ulBadChecksum        = (int)native.ulBadChecksum;
                this._logtimeBadChecksum   = native.logtimeBadChecksum;
                this._ulBadChecksumOld     = (int)native.ulBadChecksumOld;
                this._genCommitted         = (int)native.genCommitted;
                this._bkinfoCopyPrev       = native.bkinfoCopyPrev;
                this._bkinfoDiffPrev       = native.bkinfoDiffPrev;
            }
        }