net.sourceforge.plantuml.zopfli.LzStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.zopfli;
final class LzStore {
final char[] litLens;
final char[] dists;
int size;
LzStore(final int maxBlockSize) {
litLens = new char[maxBlockSize];
dists = new char[maxBlockSize];
}
final void append(final char length, final char dist) {
litLens[size] = length;
dists[size++] = dist;
}
final void reset() {
size = 0;
}
final void copy(final LzStore source) {
size = source.size;
System.arraycopy(source.litLens, 0, litLens, 0, size);
System.arraycopy(source.dists, 0, dists, 0, size);
}
}