public void writeByte (int value) throws KryoException { if (position == capacity) require(1); niobuffer.put((byte)value); position++; }
/** Writes an 8 byte double. */ public void writeDouble (double value) throws KryoException { require(8); niobuffer.putDouble(value); position += 8; }
/** Writes a 1 byte boolean. */ public void writeBoolean (boolean value) throws KryoException { require(1); niobuffer.put((byte)(value ? 1 : 0)); position++; }
/** Writes a 4 byte int. */ public void writeInt (int value) throws KryoException { require(4); niobuffer.putInt(value); position += 4; }
/** Writes a 2 byte short. */ public void writeShort (int value) throws KryoException { require(2); niobuffer.putShort((short)value); position += 2; }
/** Writes a byte. */ public void write (int value) throws KryoException { if (position == capacity) require(1); niobuffer.put((byte)value); position++; }
public void writeByte (int value) throws KryoException { if (position == capacity) require(1); niobuffer.put((byte)value); position++; }
/** Writes a byte. */ public void write (int value) throws KryoException { if (position == capacity) require(1); niobuffer.put((byte)value); position++; }
public void writeByte (byte value) throws KryoException { if (position == capacity) require(1); niobuffer.put(value); position++; }
/** Writes a 2 byte short. */ public void writeShort (int value) throws KryoException { require(2); niobuffer.putShort((short)value); position += 2; }
/** Writes a 2 byte char. */ public void writeChar (char value) throws KryoException { require(2); niobuffer.putChar(value); position += 2; }
public void writeByte (byte value) throws KryoException { if (position == capacity) require(1); niobuffer.put(value); position++; }
/** Writes a 2 byte short. */ public void writeShort (int value) throws KryoException { require(2); niobuffer.putShort((short)value); position += 2; }
/** Writes an 8 byte long. */ public void writeLong (long value) throws KryoException { require(8); niobuffer.putLong(value); position += 8; }
/** Writes a 4 byte int. */ public void writeInt (int value) throws KryoException { require(4); niobuffer.putInt(value); position += 4; }
/** Writes a 2 byte short. */ public void writeShort (int value) throws KryoException { require(2); niobuffer.putShort((short)value); position += 2; }
/** Writes an 8 byte long. */ public void writeLong (long value) throws KryoException { require(8); niobuffer.putLong(value); position += 8; }
/** Writes a 1 byte boolean. */ public void writeBoolean (boolean value) throws KryoException { require(1); niobuffer.put((byte)(value ? 1 : 0)); position++; }
/** Writes a 4 byte int. */ public void writeInt (int value) throws KryoException { require(4); niobuffer.putInt(value); position += 4; }
/** Writes a 2 byte char. */ public void writeChar (char value) throws KryoException { require(2); niobuffer.putChar(value); position += 2; }