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

@param int    $offset The offset to write to.
@param string $data   The binary data to write.
Writes binary data to shared memory .