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

skadistats.clarity.io.decoder.LongSignedDecoder 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;

import skadistats.clarity.io.bitstream.BitStream;

public class LongSignedDecoder implements Decoder {

    private final int nBits;

    public LongSignedDecoder(int nBits) {
        this.nBits = nBits;
    }

    @Override
    public Long decode(BitStream bs) {
        return bs.readSBitLong(nBits);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy