/// <summary> /// Raises the <see cref="PrintMessage"/> event. /// </summary> /// <param name="e">The <see cref="Karna.Compression.CompressionEventArgs"/> instance containing the event data.</param> protected virtual void OnPrintMessage(CompressionEventArgs e) { if (PrintMessage != null) { PrintMessage(this, e); } }
/// <summary> /// The zip32.dll passes activity messages to the declared byte array. /// Decode the byte array to see the message /// </summary> /// <param name="msg">The message.</param> /// <param name="x">The length of the message.</param> /// <returns></returns> internal int ProcessPrintCallback(ref CallbackString msg, uint x) { string s = InternalHelper.PCharToString(msg.Buffer); CompressionEventArgs e = new CompressionEventArgs(s); OnPrintMessage(e); return(0); }