Prototype for BinaryDocument objects
To create a BinaryDocument do this:
var parameters = new Document.Parameters ( );
parameters.document_type = "binaries";
var doc = new Document (parameters, "view");
none. Use Document constructor.
none.
ECMerge 2.4
BinaryDocument are the documents used to compare binary files. They are currently read-only. They allow you to determine precisely how two or three documents compare which differences are present between the pairs of files. The BinaryDocument let you access the content of any file in numerical manner with BinaryDocument.Content.read_number .
Property | Description |
zones_of_interest | Array of BinaryDocument.ZoneOfInterest objects. Read-Only. Zones of interest are bands of bytes which are naturally confronted given the differences at hand. |
content | Array of BinaryDocument.Content objects. Read-Only. Content objects are the files loaded by the comparison engine. |
information | See description in Document object. |
Property | Description |
dynamic_fields | Array of BinaryDocument.Field objects. Read-only. List of fields discovered by the script 'dynamic fields script' in the binary file type for that role |
differences
finalize_differences
BinaryDocument.Content object
function differences ( couple )
returns an Array of BinaryDocument.Difference object.
couple. Side Couple string. Couple for which the differences are requested. In 2-way, only "left-right" is legal.
TextDocument object.
ECMerge 2.1
Returns a Array of differences describing the left side in the given couple was modified with respect to the other side of the couple.
Displays a message box telling whether the two sides are identical or not:
var doc = current_frame.coordinator.document;
alert ( "Left and right sides are "+ (doc.differences
("left-right").length == 0 ? "identical" : "different")
);
BinaryDocument.Difference object
function finalize_differences ( )
none.
BinaryDocument object.
ECMerge 2.4
This method forces the comparison engine to compute all the differences.
BinaryDocument.Difference object