[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/vendor/guzzlehttp/streams/src/ -> LimitStream.php (summary)

(no description)

File Size: 161 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LimitStream:: (8 methods):
  __construct()
  eof()
  getSize()
  seek()
  tell()
  setOffset()
  setLimit()
  read()


Class: LimitStream  - X-Ref

Decorator used to return only a subset of a stream

__construct(StreamInterface $stream,$limit = -1,$offset = 0)   X-Ref

param: StreamInterface $stream Stream to wrap
param: int             $limit  Total number of bytes to allow to be read
param: int|null        $offset Position to seek to before reading (only

eof()   X-Ref
No description

getSize()   X-Ref
Returns the size of the limited subset of data
{@inheritdoc}


seek($offset, $whence = SEEK_SET)   X-Ref
Allow for a bounded seek on the read limited stream
{@inheritdoc}


tell()   X-Ref
Give a relative tell()
{@inheritdoc}


setOffset($offset)   X-Ref
Set the offset to start limiting from

param: int $offset Offset to seek to and begin byte limiting from
return: self

setLimit($limit)   X-Ref
Set the limit of bytes that the decorator allows to be read from the
stream.

param: int $limit Number of bytes to allow to be read from the stream.
return: self

read($length)   X-Ref
No description



Generated: Tue Apr 7 19:42:26 2020 Cross-referenced by PHPXref 0.7.1