super.copyTo(other, otherByteIndex, myByteIndex, lenBytes);
}
@Override
public BasicBytez newInstance(long size) {
System.out.println("Resizing memory mapped buffer to " + size);
<BUG>try {
munmap(baseAdress, length);
randomAccessFile.setLength(size);</BUG>
baseAdress = mmap(fileChannel, MAP_READ_WRITE, 0L, size);
length = size;

super.copyTo(other, otherByteIndex, myByteIndex, lenBytes);
}
@Override
public BasicBytez newInstance(long size) {
System.out.println("Resizing memory mapped buffer to " + size);
try {
if (this.baseAdress != 0L) {
munmap(baseAdress, length);
this.baseAdress = 0L;
}
randomAccessFile.setLength(size);
baseAdress = mmap(fileChannel, MAP_READ_WRITE, 0L, size);
length = size;
