PHP 인터페이스 ParagonIE\Halite\Contract\StreamInterface

파일 보기 프로젝트 열기: paragonie/halite 0 사용 예제들

공개 메소드들

메소드 설명
getPos ( ) : integer Where are we in the buffer?
getSize ( ) : integer How big is this buffer?
readBytes ( integer $num, boolean $skipTests = false ) : string Read from a stream; prevent partial reads
remainingBytes ( ) : integer How many bytes are left between here and the end of the stream?
writeBytes ( string $buf, integer $num = null ) : integer Write to a stream; prevent partial writes

메소드 상세

getPos() 공개 메소드

Where are we in the buffer?
public getPos ( ) : integer
리턴 integer

getSize() 공개 메소드

How big is this buffer?
public getSize ( ) : integer
리턴 integer

readBytes() 공개 메소드

Read from a stream; prevent partial reads
public readBytes ( integer $num, boolean $skipTests = false ) : string
$num integer
$skipTests boolean
리턴 string

remainingBytes() 공개 메소드

How many bytes are left between here and the end of the stream?
public remainingBytes ( ) : integer
리턴 integer

writeBytes() 공개 메소드

Write to a stream; prevent partial writes
public writeBytes ( string $buf, integer $num = null ) : integer
$buf string
$num integer (number of bytes)
리턴 integer