/** Writes a 1-5 byte float with reduced precision. * @param optimizePositive If true, small positive numbers will be more efficient (1 byte) and small negative numbers will be * inefficient (5 bytes). */ public int writeFloat (float value, float precision, boolean optimizePositive) throws KryoException { return writeInt((int)(value * precision), optimizePositive); }
/** Writes a 1-5 byte float with reduced precision. * @param optimizePositive If true, small positive numbers will be more efficient (1 byte) and small negative numbers will be * inefficient (5 bytes). */ public int writeFloat (float value, float precision, boolean optimizePositive) throws KryoException { return writeInt((int)(value * precision), optimizePositive); }
/** Writes a 1-5 byte float with reduced precision. * @param optimizePositive If true, small positive numbers will be more efficient (1 byte) and small negative numbers will be * inefficient (5 bytes). */ public int writeFloat (float value, float precision, boolean optimizePositive) throws KryoException { return writeInt((int)(value * precision), optimizePositive); }
/** Writes a 1-5 byte float with reduced precision. * @param optimizePositive If true, small positive numbers will be more efficient (1 byte) and small negative numbers will be * inefficient (5 bytes). */ public int writeFloat (float value, float precision, boolean optimizePositive) throws KryoException { return writeInt((int)(value * precision), optimizePositive); }
public int writeInt (int value, boolean optimizePositive) throws KryoException { if (!varIntsEnabled) { writeInt(value); return 4; } else return writeVarInt(value, optimizePositive); }
public int writeInt (int value, boolean optimizePositive) throws KryoException { if (!varIntsEnabled) { writeInt(value); return 4; } else return writeVarInt(value, optimizePositive); }
public int writeInt (int value, boolean optimizePositive) throws KryoException { if (!varIntsEnabled) { writeInt(value); return 4; } else return writeVarInt(value, optimizePositive); }
public int writeInt (int value, boolean optimizePositive) throws KryoException { if (!varIntsEnabled) { writeInt(value); return 4; } else return writeVarInt(value, optimizePositive); }