[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/guzzlehttp/streams/src/ -> NoSeekStream.php (source)

   1  <?php
   2  namespace GuzzleHttp\Stream;
   3  
   4  /**
   5   * Stream decorator that prevents a stream from being seeked
   6   */
   7  class NoSeekStream implements StreamInterface
   8  {
   9      use StreamDecoratorTrait;
  10  
  11      public function seek($offset, $whence = SEEK_SET)
  12      {
  13          return false;
  14      }
  15  
  16      public function isSeekable()
  17      {
  18          return false;
  19      }
  20  
  21      public function attach($stream)
  22      {
  23          $this->stream->attach($stream);
  24      }
  25  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1