All Downloads are FREE. Search and download functionalities are using the official Maven repository.

skadistats.clarity.io.decoder.factory.s2.LongUnsignedDecoderFactory Maven / Gradle / Ivy

Go to download

Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.

There is a newer version: 3.1.1
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy