Maven module :un.storage : archive-xz :
Class : un.storage.archive.xz.lzma.Optimum
Extends/Implements : -
Subclasses : -

/*
Optimum

Authors: Lasse Collin
Igor Pavlov

This file has been put into the public domain.
You can do whatever you want with this file.


Variables : state, reps, price, optPrev, backPrev, prev1IsLiteral, hasPrev2, optPrev2, backPrev2
Functions : reset, set1, set2, set3


State state

int[] reps


Cumulative price of arriving to this byte.
int price

int optPrev

int backPrev

boolean prev1IsLiteral

boolean hasPrev2

int optPrev2

int backPrev2



Resets the price.
void reset ()


Sets to indicate one LZMA symbol (literal, rep, or match).
void set1 (int newPrice, int optCur, int back)


Sets to indicate two LZMA symbols of which the first one is a literal.
void set2 (int newPrice, int optCur, int back)


Sets to indicate three LZMA symbols of which the second one
is a literal.
void set3 (int newPrice, int optCur, int back2, int len2, int back)