Game Development Reference
In-Depth Information
private static PatchOperation Process(PatchOperation operation)
{
Note
The source code for this method is available on the Companion Web site.
}
The following method processes a range of data in the source and target buffers to
pull out any similarities in the data. This method mainly tries to find data that
does not change between the source and target buffers to reduce the overall data
size of the transformation sequence.
private static void ProcessRange(PatchOperation operation,
int targetStart,
int targetEnd,
int sourceStart,
int sourceEnd)
{
Note
The source code for this method is available on the Companion Web site.
}
The following method performs the actual extraction of match data within a spec-
ified range.
private static void GetLongestSourceMatch(PatchOperation operation,
PatchState state,
int targetStart,
int targetEnd,
int sourceStart,
int sourceEnd)
{
Note
The source code for this method is available on the Companion Web site.
}
The following method compares the specified ranges in the source and target
buffers to determine the length of a match.
 
Search Nedrilad ::




Custom Search