PHP 클래스 Protobuf\Binary\StreamReader

저자: Iván Montes ([email protected])
저자: Fabio B. Silva ([email protected])
파일 보기 프로젝트 열기: protobuf-php/protobuf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Protobuf\Configuration
$isBigEndian boolean
$stream Protobuf\Stream

공개 메소드들

메소드 설명
__construct ( Configuration $config ) Constructor
readBool ( Stream $stream ) : boolean Decode a bool.
readByte ( Stream $stream ) : integer Reads a byte.
readByteStream ( Stream $stream ) : Stream Decode a stream of bytes.
readDouble ( Stream $stream ) : float Decode a 64bit double.
readFixed32 ( Stream $stream ) : integer Decode a fixed 32bit integer without sign.
readFixed64 ( Stream $stream ) : integer Decode a fixed 64bit integer without sign.
readFloat ( Stream $stream ) : float Decode a 32bit float.
readSFixed32 ( Stream $stream ) : integer Decode a fixed 32bit integer with sign.
readSFixed64 ( Stream $stream ) : integer Decode a fixed 64bit integer with sign.
readString ( Stream $stream ) : string Decode a string.
readUnknown ( Stream $stream, integer $wire ) : scalar Read unknown scalar value.
readVarint ( Stream $stream ) : integer Decode a varint.
readZigzag ( Stream $stream ) : integer Decodes a zigzag integer of the given bits.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Configuration $config )
$config Protobuf\Configuration

readBool() 공개 메소드

Decode a bool.
public readBool ( Stream $stream ) : boolean
$stream Protobuf\Stream
리턴 boolean

readByte() 공개 메소드

Reads a byte.
public readByte ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

readByteStream() 공개 메소드

Decode a stream of bytes.
public readByteStream ( Stream $stream ) : Stream
$stream Protobuf\Stream
리턴 Protobuf\Stream

readDouble() 공개 메소드

Decode a 64bit double.
public readDouble ( Stream $stream ) : float
$stream Protobuf\Stream
리턴 float

readFixed32() 공개 메소드

Decode a fixed 32bit integer without sign.
public readFixed32 ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

readFixed64() 공개 메소드

Decode a fixed 64bit integer without sign.
public readFixed64 ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

readFloat() 공개 메소드

Decode a 32bit float.
public readFloat ( Stream $stream ) : float
$stream Protobuf\Stream
리턴 float

readSFixed32() 공개 메소드

Decode a fixed 32bit integer with sign.
public readSFixed32 ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

readSFixed64() 공개 메소드

Decode a fixed 64bit integer with sign.
public readSFixed64 ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

readString() 공개 메소드

Decode a string.
public readString ( Stream $stream ) : string
$stream Protobuf\Stream
리턴 string

readUnknown() 공개 메소드

Read unknown scalar value.
public readUnknown ( Stream $stream, integer $wire ) : scalar
$stream Protobuf\Stream
$wire integer
리턴 scalar

readVarint() 공개 메소드

Decode a varint.
public readVarint ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

readZigzag() 공개 메소드

Decodes a zigzag integer of the given bits.
public readZigzag ( Stream $stream ) : integer
$stream Protobuf\Stream
리턴 integer

프로퍼티 상세

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

protected Configuration,Protobuf $config
리턴 Protobuf\Configuration

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

protected bool $isBigEndian
리턴 boolean

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

protected Stream,Protobuf $stream
리턴 Protobuf\Stream