@Override
  public void replaceBytes(int record, int offset, @NotNull ByteArraySequence bytes) throws IOException {
    withWriteLock(() -> {
      final int changedBytesLength = bytes.getLength();

      final int currentSize = recordsTable.getSize(record);
      assert currentSize >= 0;
      assert offset + bytes.getLength() <= currentSize;

      if (changedBytesLength == 0) return;

      final long address = recordsTable.getAddress(record);

      dataTable.writeBytes(address + offset, bytes.getInternalBuffer(), bytes.getOffset(), bytes.getLength());
    });
  }
@Override
  public void replaceBytes(int record, int offset, @NotNull ByteArraySequence bytes)