skadistats.clarity.io.decoder.factory.s2.LongUnsignedDecoderFactory 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, CSGO, CS2 and Deadlock written in Java.
package skadistats.clarity.io.decoder.factory.s2;
import skadistats.clarity.io.s2.DecoderProperties;
import skadistats.clarity.io.decoder.LongUnsignedDecoder;
import skadistats.clarity.io.decoder.LongVarUnsignedDecoder;
import skadistats.clarity.io.decoder.Decoder;
public class LongUnsignedDecoderFactory implements DecoderFactory {
public static Decoder createDecoderStatic(DecoderProperties f) {
if ("fixed64".equals(f.getEncoderType())) {
return new LongUnsignedDecoder(64);
}
return new LongVarUnsignedDecoder();
}
@Override
public Decoder createDecoder(DecoderProperties f) {
return createDecoderStatic(f);
}
}