HexFiend
Instance Methods | List of all members
HFByteArrayEditScript Class Reference

A class that represents an sequence of instructions for editing an HFByteArray. More...

Inheritance diagram for HFByteArrayEditScript:

Instance Methods

(instancetype) - initWithDifferenceFromSource:toDestination:trackingProgress:
 
(void) - applyToByteArray:
 
(NSUInteger) - numberOfInstructions
 
(struct HFEditInstruction_t- instructionAtIndex:
 

Detailed Description

HFByteArrayEditScript is useful for representing a diff between two HFByteArrays.

Method Documentation

§ initWithDifferenceFromSource:toDestination:trackingProgress:()

- (instancetype) initWithDifferenceFromSource: (HFByteArray *)  src
toDestination: (HFByteArray *)  dst
trackingProgress: (HFProgressTracker *)  progressTracker 

Computes the edit script (differences) from src to dst. This retains both src and dst, and if they are modified then the receiver will likely no longer function. You may optionally pass an HFProgressTracker for progress reporting and cancellation. This returns nil if it was cancelled.

§ applyToByteArray:()

- (void) applyToByteArray: (HFByteArray *)  byteArray

Applies the receiver to an HFByteArray.

§ numberOfInstructions()

- (NSUInteger) numberOfInstructions

Returns the number of instructions.

§ instructionAtIndex:()

- (struct HFEditInstruction_t) instructionAtIndex: (NSUInteger)  index

Returns the instruction at a given index.


The documentation for this class was generated from the following file: