skadistats.clarity.io.decoder.factory.s1.ArrayDecoderFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarity Show documentation
Show all versions of clarity Show documentation
Clarity is an open source replay parser for Dota 2 and CSGO 1 and 2 written in Java.
package skadistats.clarity.io.decoder.factory.s1;
import skadistats.clarity.io.Util;
import skadistats.clarity.io.s1.S1DecoderFactory;
import skadistats.clarity.io.s1.SendProp;
import skadistats.clarity.io.decoder.ArrayDecoder;
import skadistats.clarity.io.decoder.Decoder;
public class ArrayDecoderFactory implements DecoderFactory {
public static Decoder> createDecoderStatic(SendProp prop) {
return new ArrayDecoder(
S1DecoderFactory.createDecoder(prop.getTemplate()),
Util.calcBitsNeededFor(prop.getNumElements())
);
}
@Override
public Decoder createDecoder(SendProp prop) {
return (Decoder) createDecoderStatic(prop);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy