if (agentBuffer->getEndOfLastWrite())