for (int i = 0; i < pagesPer10Second; i++) { for (MappedBytes bytes : queues) { bytes.writeLong(i * (4 << 10), i);
@Override @NotNull public Bytes<Void> write(@NotNull RandomDataInput bytes, long offset, long length) throws BufferUnderflowException, BufferOverflowException { assert singleThreadedAccess(); if (bytes instanceof BytesStore) write((BytesStore) bytes, offset, length); else if (length == 8) writeLong(bytes.readLong(offset)); else if (length > 0) BytesInternal.writeFully(bytes, offset, length, this); return this; }
@NotNull @Override public Bytes<Void> write(@NotNull BytesStore bytes, long offset, long length) throws BufferUnderflowException, BufferOverflowException { assert singleThreadedAccess(); if (length == 8) writeLong(bytes.readLong(offset)); else if (bytes.isDirectMemory() && length <= Math.min(writeRemaining(), safeCopySize())) rawCopy(bytes, offset, length); else if (length > 0) BytesInternal.writeFully(bytes, offset, length, this); return this; }