@NotNull @Override @ForceInline public Bytes<Underlying> prewriteLong(long i64) { long offset = prewriteOffsetPositionMoved(8); bytesStore.writeLong(offset, i64); return this; }
@NotNull @Override @ForceInline public Bytes<Underlying> writeLong(long offset, long i) throws BufferOverflowException { writeCheckOffset(offset, 8); bytesStore.writeLong(offset, i); return this; }
@NotNull @Override @ForceInline public NativeBytesStore<Underlying> write( long offsetInRDO, @NotNull RandomDataInput bytes, long offset, long length) throws BufferOverflowException, BufferUnderflowException, IORuntimeException { // TODO optimize, call unsafe.copyMemory when possible, copy 4, 2 bytes at once long i = 0; for (; i < length - 7; i += 8) { writeLong(offsetInRDO + i, bytes.readLong(offset + i)); } for (; i < length; i++) { writeByte(offsetInRDO + i, bytes.readByte(offset + i)); } return this; }