Package com.github.junrar.unpack.ppm
Class PPMContext
java.lang.Object
com.github.junrar.unpack.ppm.Pointer
com.github.junrar.unpack.ppm.PPMContext
DOCUMENT ME
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcreateChild(ModelPPM model, State pStats, StateRef firstState) voiddecodeBinSymbol(ModelPPM model) booleandecodeSymbol1(ModelPPM model) booleandecodeSymbol2(ModelPPM model) intgetMean(int summ, int shift, int round) final intintinit(byte[] mem) voidvoidsetAddress(int pos) needs to set the fields of this object to the values in the byte[] at the given position.voidsetFreqData(FreqData freqData) final voidsetNumStats(int numStats) voidsetOneState(StateRef oneState) voidsetSuffix(int suffix) voidsetSuffix(PPMContext suffix) toString()voidvoidMethods inherited from class com.github.junrar.unpack.ppm.Pointer
getAddress
-
Field Details
-
size
public static final int size -
ExpEscape
public static final int[] ExpEscape
-
-
Constructor Details
-
PPMContext
public PPMContext(byte[] mem)
-
-
Method Details
-
init
-
getFreqData
-
setFreqData
-
getNumStats
public final int getNumStats() -
setNumStats
public final void setNumStats(int numStats) -
getOneState
-
setOneState
-
getSuffix
public int getSuffix() -
setSuffix
-
setSuffix
public void setSuffix(int suffix) -
setAddress
public void setAddress(int pos) Description copied from class:Pointerneeds to set the fields of this object to the values in the byte[] at the given position. be aware of the byte order- Overrides:
setAddressin classPointer- Parameters:
pos- the position this object should point to
-
createChild
-
rescale
-
getMean
public int getMean(int summ, int shift, int round) -
decodeBinSymbol
-
update1
-
decodeSymbol2
-
update2
-
decodeSymbol1
-
toString
-