PHP 클래스 Grafika\Gd\Helper\GifByteStream

Treat string as byte stream where 2 string characters are treated as 1 hex string (byte). Eg. String ffff with length 4 is 0xff 0xff in bytes with length of 2.
파일 보기 프로젝트 열기: kosinix/grafika

공개 메소드들

메소드 설명
__construct ( string $bytes ) GifByteStream constructor.
back ( integer $step = 1 )
bite ( integer $size ) : string Take a bite from the byte stream.
find ( $byteString, $offset ) : boolean | float
getBytes ( ) : mixed
getPosition ( ) : integer
isEnd ( ) : boolean
length ( ) : float
next ( integer $step = 1 )
setPosition ( $position )

메소드 상세

__construct() 공개 메소드

GifByteStream constructor.
public __construct ( string $bytes )
$bytes string Accepts only the string created by unpack('H*')

back() 공개 메소드

public back ( integer $step = 1 )
$step integer

bite() 공개 메소드

Take a bite from the byte stream.
public bite ( integer $size ) : string
$size integer Byte size in integer.
리턴 string

find() 공개 메소드

public find ( $byteString, $offset ) : boolean | float
$byteString
$offset
리턴 boolean | float

getBytes() 공개 메소드

public getBytes ( ) : mixed
리턴 mixed

getPosition() 공개 메소드

public getPosition ( ) : integer
리턴 integer

isEnd() 공개 메소드

public isEnd ( ) : boolean
리턴 boolean

length() 공개 메소드

public length ( ) : float
리턴 float

next() 공개 메소드

public next ( integer $step = 1 )
$step integer

setPosition() 공개 메소드

public setPosition ( $position )
$position