skadistats.clarity.io.decoder.IntSignedDecoder 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;
import skadistats.clarity.io.bitstream.BitStream;
public class IntSignedDecoder implements Decoder {
private final int nBits;
public IntSignedDecoder(int nBits) {
this.nBits = nBits;
}
@Override
public Integer decode(BitStream bs) {
return bs.readSBitInt(nBits);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy