public boolean atEnd() {
        if (readBuffer.position() <= UnsafeAccess.TCP_DELIMITER.length  || readBuffer.position() % 8 != 0)
            return false;
        else
            return readBuffer.array()[readBuffer.position()-1] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-1]
                    && readBuffer.array()[readBuffer.position()-2] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-2]
                    && readBuffer.array()[readBuffer.position()-3] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-3]
                    && readBuffer.array()[readBuffer.position()-4] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-4]
                    && readBuffer.array()[readBuffer.position()-5] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-5]
                    && readBuffer.array()[readBuffer.position()-6] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-6]
                    && readBuffer.array()[readBuffer.position()-7] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-7]
                    && readBuffer.array()[readBuffer.position()-8] == UnsafeAccess.TCP_DELIMITER[UnsafeAccess.TCP_DELIMITER.length-8];
    }