PHP 클래스 GuzzleHttp\Psr7\LimitStream

상속: implements Psr\Http\Message\StreamInterface, use trait GuzzleHttp\Psr7\StreamDecoratorTrait
파일 보기 프로젝트 열기: nystudio107/instantanalytics 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Psr\Http\Message\StreamInterface $stream, integer $limit, integer $offset )
eof ( )
getSize ( ) Returns the size of the limited subset of data {@inheritdoc}
read ( $length )
seek ( $offset, $whence = SEEK_SET ) Allow for a bounded seek on the read limited stream {@inheritdoc}
setLimit ( integer $limit ) Set the limit of bytes that the decorator allows to be read from the stream.
setOffset ( integer $offset ) Set the offset to start limiting from
tell ( ) Give a relative tell() {@inheritdoc}

메소드 상세

__construct() 공개 메소드

public __construct ( Psr\Http\Message\StreamInterface $stream, integer $limit, integer $offset )
$stream Psr\Http\Message\StreamInterface Stream to wrap
$limit integer Total number of bytes to allow to be read from the stream. Pass -1 for no limit.
$offset integer Position to seek to before reading (only works on seekable streams).

eof() 공개 메소드

public eof ( )

getSize() 공개 메소드

Returns the size of the limited subset of data {@inheritdoc}
public getSize ( )

read() 공개 메소드

public read ( $length )

seek() 공개 메소드

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

setLimit() 공개 메소드

Set the limit of bytes that the decorator allows to be read from the stream.
public setLimit ( integer $limit )
$limit integer Number of bytes to allow to be read from the stream. Use -1 for no limit.

setOffset() 공개 메소드

Set the offset to start limiting from
public setOffset ( integer $offset )
$offset integer Offset to seek to and begin byte limiting from

tell() 공개 메소드

Give a relative tell() {@inheritdoc}
public tell ( )