private function memGet(int $offset, int $size): string
    {
        $data = \shmop_read($this->handle, $offset, $size);
        if ($data === false) {
            throw new SharedMemoryException('Failed to read from shared memory block.');
        }
        return $data;
    }
private function memGet(int $offset, int $size): string
    {
        $data = \shmop_read($this->handle, $offset, $size);
        if ($data === false) {
            throw new SharedMemoryException('Failed to read from shared memory block.');
        }
        return $data;
    }
private function memGet ( int $ offset , int $ size ) : string { $ data = \ shmop_read ( $ this -> handle , $ offset , $ size ) ; if ( $ data === false ) { throw new SharedMemoryException ( 'Failed to read from shared memory block.' ) ; } return $ data ; }
Reads binary data from shared memory.

@param int $offset The offset to read from.
@param int $size   The number of bytes to read.

@return string The binary data at the given offset.
Reads binary data from shared memory .