unsafe bool MyDecryptCallback(byte *pMethodCode, int methodSize, ref Delegate createdDelegate) { createdDelegate = new DecryptCallback(MyDecryptCallback); decryptedData = new byte[methodSize]; Marshal.Copy(new IntPtr(pMethodCode), decryptedData, 0, decryptedData.Length); return(decryptReturnValue = true); }
public DecryptThread(object data, DecryptCallback callback, string sFileSrc, string sDirDst, string sFileKey) { m_data = data; m_DecryptCallback = callback; m_sFileSrc = sFileSrc; m_sDirDst = sDirDst; m_sFileKey = sFileKey; }
unsafe bool MyDecryptCallback(byte* pMethodCode, int methodSize, ref Delegate createdDelegate) { createdDelegate = new DecryptCallback(MyDecryptCallback); decryptedData = new byte[methodSize]; Marshal.Copy(new IntPtr(pMethodCode), decryptedData, 0, decryptedData.Length); return decryptReturnValue = true; }