Ellié Computing Home Page
My Shopping Cart

Your shopping cart is empty

Display Cart

Call us at +1 586 62 ELLIE / +1 586 62 35543 Office Closed
sales@elliecomputing.com - Contact us


BinaryDocument.Difference object

 

 

Prototype for BinaryDocument.Difference objects.

Syntax

You cannot create these objects. You can just access them as returned by the BinaryDocument.differences call.

Parameters

none.

Property Of

none.

Implemented In

ECMerge 2.4

Description

BinaryDocument.Difference objects describes a difference between two sides at the byte level.

Properties

Property Description
ignored Boolean. True if the rules about ignored changes established that this change should be ignored 

Methods

  bytes

Examples

Example 1.

Logs for each difference whether it is ignored or not, out of the list between left and right side of a binary document: 

var doc = current_frame.coordinator.document; // on a binary frame
var left_right_diff = doc.differences ("left-right");

for (var idx=0; idx<left_right_diff.length; ++idx)
    log ("diff "+idx+"is "+(left_right_diff[idx].ignored?"":"not ")+"ignored");

See Also 

BinaryDocument object

Method bytes

Syntax

function bytes ( role )
returns a LinearRange

Parameters

role. String. "source" or "target".

Method Of

BinaryDocument.Difference object.

Implemented In

ECMerge 2.4

Description

Returns the range of bytes encompassed by the difference for the given role.

See Also 

  BinaryDocument.Difference object