Skip to content

TAbstractResource.CompareContents

Compares the contents of the resource to the contents of another one

Declaration

Source position: resource.pp line 169

public 
function TAbstractResource.CompareContents(aResource: TAbstractResource)
                                           : Boolean;  virtual;

Description

This methods compares the contents of the resource with the ones of aResource. If they are of the same length and their contents are the same, true is returned, false otherwise.

Usually this methods compares the contents of the two RawData streams, calling TResourceDataStream.Compare, but descendent classes can implement a different algorithm.

See also

Name Description
TResourceDataStream.Compare Compares the stream to another one