C# 클래스 TrainerEditor.LZUtil

파일 보기 프로젝트 열기: Jambo51/Trainer_Editor 1 사용 예제들

공개 메소드들

메소드 설명
GetOccurrenceLength ( byte newPtr, int newLength, byte oldPtr, int oldLength, int &disp, int minDisp = 1 ) : int

Determine the maximum size of a LZ-compressed block starting at newPtr, using the already compressed data starting at oldPtr. Takes O(inLength * oldLength) = O(n^2) time.

메소드 상세

GetOccurrenceLength() 공개 정적인 메소드

Determine the maximum size of a LZ-compressed block starting at newPtr, using the already compressed data starting at oldPtr. Takes O(inLength * oldLength) = O(n^2) time.
public static GetOccurrenceLength ( byte newPtr, int newLength, byte oldPtr, int oldLength, int &disp, int minDisp = 1 ) : int
newPtr byte The start of the data that needs to be compressed.
newLength int The number of bytes that still need to be compressed. /// (or: the maximum number of bytes that _may_ be compressed into one block)
oldPtr byte The start of the raw file.
oldLength int The number of bytes already compressed.
disp int The offset of the start of the longest block to refer to.
minDisp int The minimum allowed value for 'disp'.
리턴 int