PHP 인터페이스 Swift_CharacterStream, Halite

Classes implementing this interface may use a subsystem which requires less memory than working with large strings of data.
저자: Chris Corbyn
파일 보기 프로젝트 열기: HaliteChallenge/Halite 0 사용 예제들

공개 메소드들

메소드 설명
flushContents ( ) Empty the stream and reset the internal pointer.
importByteStream ( Swift_OutputByteStream $os ) Overwrite this character stream using the byte sequence in the byte stream.
importString ( string $string ) Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
read ( integer $length ) : string Read $length characters from the stream and move the internal pointer $length further into the stream.
readBytes ( integer $length ) : int[] Read $length characters from the stream and return a 1-dimensional array containing there octet values.
setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory ) Set the CharacterReaderFactory for multi charset support.
setCharacterSet ( string $charset ) Set the character set used in this CharacterStream.
setPointer ( integer $charOffset ) Move the internal pointer to $charOffset in the stream.
write ( string $chars ) Write $chars to the end of the stream.

메소드 상세

flushContents() 공개 메소드

Empty the stream and reset the internal pointer.
public flushContents ( )

importByteStream() 공개 메소드

Overwrite this character stream using the byte sequence in the byte stream.
public importByteStream ( Swift_OutputByteStream $os )
$os Swift_OutputByteStream output stream to read from

importString() 공개 메소드

Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
public importString ( string $string )
$string string

read() 공개 메소드

Read $length characters from the stream and move the internal pointer $length further into the stream.
public read ( integer $length ) : string
$length integer
리턴 string

readBytes() 공개 메소드

Read $length characters from the stream and return a 1-dimensional array containing there octet values.
public readBytes ( integer $length ) : int[]
$length integer
리턴 int[]

setCharacterReaderFactory() 공개 메소드

Set the CharacterReaderFactory for multi charset support.
public setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory )
$factory Swift_CharacterReaderFactory

setCharacterSet() 공개 메소드

Set the character set used in this CharacterStream.
public setCharacterSet ( string $charset )
$charset string

setPointer() 공개 메소드

Move the internal pointer to $charOffset in the stream.
public setPointer ( integer $charOffset )
$charOffset integer

write() 공개 메소드

Write $chars to the end of the stream.
public write ( string $chars )
$chars string