Unit 'resource' Package
[Overview][Resource strings][Constants][Types][Classes][Index] [#fcl-res]

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;

Arguments

aResource

  

The resource to compare to this one

Function result

True if the contents of the two resources are the same

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

TResourceDataStream.Compare

  

Compares the stream to another one


Documentation generated on: Nov 23 2024