private function memSet(int $offset, string $data) { if (!shmop_write($this->handle, $data, $offset)) { throw new SharedMemoryException('Failed to write to shared memory block.'); } }