PHP 인터페이스 Swift_Transport_IoBuffer, Halite

저자: Chris Corbyn
상속: extends Swift_InputByteStream, extends Swift_OutputByteStream
파일 보기 프로젝트 열기: HaliteChallenge/Halite

공개 메소드들

메소드 설명
initialize ( array $params ) Perform any initialization needed, using the given $params.
readLine ( integer $sequence ) : string Get a line of output (including any CRLF).
setParam ( string $param, mixed $value ) Set an individual param on the buffer (e.g. switching to SSL).
setWriteTranslations ( array $replacements ) Set an array of string replacements which should be made on data written to the buffer.
terminate ( ) Perform any shutdown logic needed.

메소드 상세

initialize() 공개 메소드

Parameters will vary depending upon the type of IoBuffer used.
public initialize ( array $params )
$params array

readLine() 공개 메소드

The $sequence number comes from any writes and may or may not be used depending upon the implementation.
public readLine ( integer $sequence ) : string
$sequence integer of last write to scan from
리턴 string

setParam() 공개 메소드

Set an individual param on the buffer (e.g. switching to SSL).
public setParam ( string $param, mixed $value )
$param string
$value mixed

setWriteTranslations() 공개 메소드

This could replace LF with CRLF for example.
public setWriteTranslations ( array $replacements )
$replacements array

terminate() 공개 메소드

Perform any shutdown logic needed.
public terminate ( )