public void positionAddr(long positionAddr) { positionChecks(positionAddr); this.position = positionAddr; }
public void positionAddr(long positionAddr) { positionChecks(positionAddr); this.position = positionAddr; }
@Override public void writeChar(int v) { positionChecks(position + 2L); getChronicleUnsafe().putChar(position, (char) v); position += 2L; }
@Override public void writeOrderedInt(int v) { positionChecks(position + 4L); getChronicleUnsafe().putOrderedInt(null, position, v); position += 4L; }
@Override public void writeChar(int v) { positionChecks(position + 2L); getChronicleUnsafe().putChar(position, (char) v); position += 2L; }
@Override public void writeInt(int v) { positionChecks(position + 4L); getChronicleUnsafe().putInt(position, v); position += 4L; }
@Override public void writeLong(long v) { positionChecks(position + 8L); getChronicleUnsafe().putLong(position, v); position += 8L; }
@Override public void writeLong(long v) { positionChecks(position + 8L); getChronicleUnsafe().putLong(position, v); position += 8L; }
@Override public void writeDouble(double v) { positionChecks(position + 8L); getChronicleUnsafe().putDouble(position, v); position += 8L; }
@Override public void writeOrderedLong(long v) { positionChecks(position + 8L); getChronicleUnsafe().putOrderedLong(null, position, v); position += 8L; }
@Override public void writeOrderedInt(int v) { positionChecks(position + 4L); getChronicleUnsafe().putOrderedInt(null, position, v); position += 4L; }
@Override public void writeFloat(float v) { positionChecks(position + 4L); getChronicleUnsafe().putFloat(position, v); position += 4L; }
@Override public void writeShort(int v) { positionChecks(position + 2L); getChronicleUnsafe().putShort(position, (short) v); position += 2L; }
@Override public void writeOrderedLong(long v) { positionChecks(position + 8L); getChronicleUnsafe().putOrderedLong(null, position, v); position += 8L; }
@Override public void writeInt(int v) { positionChecks(position + 4L); getChronicleUnsafe().putInt(position, v); position += 4L; }
@Override public void writeDouble(double v) { positionChecks(position + 8L); getChronicleUnsafe().putDouble(position, v); position += 8L; }
@Override public void writeShort(int v) { positionChecks(position + 2L); getChronicleUnsafe().putShort(position, (short) v); position += 2L; }
@Override public void writeFloat(float v) { positionChecks(position + 4L); getChronicleUnsafe().putFloat(position, v); position += 4L; }
@Override public void writeObject(Object object, int start, int end) { int len = end - start; ChronicleUnsafe unsafe = getChronicleUnsafe(); for (; len >= 8; len -= 8) { positionChecks(position + 8L); unsafe.putLong(position, unsafe.getLong(object, (long) start)); position += 8; start += 8; } for (; len > 0; len--) { positionChecks(position + 1L); unsafe.putByte(position, unsafe.getByte(object, (long) start)); position++; start++; } }
@Override public void writeObject(Object object, int start, int end) { int len = end - start; ChronicleUnsafe unsafe = getChronicleUnsafe(); for (; len >= 8; len -= 8) { positionChecks(position + 8L); unsafe.putLong(position, unsafe.getLong(object, (long) start)); position += 8; start += 8; } for (; len > 0; len--) { positionChecks(position + 1L); unsafe.putByte(position, unsafe.getByte(object, (long) start)); position++; start++; } }