{ $HDR$} {**********************************************************************} { Unit archived using Team Coherence } { Team Coherence is Copyright 2002 by Quality Software Components } { } { For further information / comments, visit our WEB site at } { http://www.TeamCoherence.com } {**********************************************************************} {} { $Log: 21055: CompressionInterceptBubble.pas } { Rev 1.0 6/26/2003 1:10:06 PM BGooijen Initial checkin } unit CompressionInterceptBubble; interface uses SysUtils, Classes, BXBubble, Forms; type TdmodCompressionInterceptBubble = class(TDataModule) bublCompressionIntercept: TBXBubble; procedure bublCompressionInterceptTest(Sender: TBXBubble); private protected public end; var dmodCompressionInterceptBubble: TdmodCompressionInterceptBubble; implementation {$R *.dfm} uses IdCompressionIntercept; function CompareStreams(StreamA,StreamB:TStream):boolean; var LBufferA, LBufferB: array[0..1023] of char; LSize:integer; begin result:=StreamA.size=StreamB.size; while result and (StreamA.Position