PHP 클래스 Stream_17b32f3_Stream, amp-wp

상속: implements Stream_17b32f3_Streamable_Interface
파일 보기 프로젝트 열기: Automattic/amp-wp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$stream_string The string that we have downloaded so far
$strpos integer The pointer in the string

공개 메소드들

메소드 설명
peek ( $characters ) : string Get characters from the string but don't move the pointer
read ( $characters ) : string Get Characters from the string
resetPointer ( ) : mixed Resets the pointer to the 0 position
write ( $string ) Append to the stream string

메소드 상세

peek() 공개 메소드

Get characters from the string but don't move the pointer
public peek ( $characters ) : string
$characters
리턴 string

read() 공개 메소드

Get Characters from the string
public read ( $characters ) : string
$characters
리턴 string

resetPointer() 공개 메소드

Resets the pointer to the 0 position
public resetPointer ( ) : mixed
리턴 mixed

write() 공개 메소드

Append to the stream string
public write ( $string )
$string

프로퍼티 상세

$stream_string 보호되어 있는 프로퍼티

The string that we have downloaded so far
protected $stream_string

$strpos 보호되어 있는 프로퍼티

The pointer in the string
protected int $strpos
리턴 integer