示例#1
0
 /**
  * Seeks to a specific point in the file.
  *
  * @param integer $offset The offset to seek.
  * @param integer $whence The direction.
  *
  * @throws Exception
  * @throws FileException If the file could not be seeked.
  */
 private function seek($offset, $whence = SEEK_SET)
 {
     if (-1 === @fseek($this->handle(), $offset, $whence)) {
         throw FileException::lastError();
     }
 }
 /**
  * @see VerifyInterface::init
  */
 public function init($algorithm, $path)
 {
     if (false === ($this->key = @file_get_contents($path . '.pubkey'))) {
         throw FileException::lastError();
     }
 }