PHP Class Protobuf\Binary\StreamReader

Author: Iván Montes ([email protected])
Author: Fabio B. Silva ([email protected])
Afficher le fichier Open project: protobuf-php/protobuf Class Usage Examples

Protected Properties

Свойство Type Description
$config Protobuf\Configuration
$isBigEndian boolean
$stream Protobuf\Stream

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

readBool() public méthode

Decode a bool.
public readBool ( Stream $stream ) : boolean
$stream Protobuf\Stream
Résultat boolean

readByte() public méthode

Reads a byte.
public readByte ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

readByteStream() public méthode

Decode a stream of bytes.
public readByteStream ( Stream $stream ) : Stream
$stream Protobuf\Stream
Résultat Protobuf\Stream

readDouble() public méthode

Decode a 64bit double.
public readDouble ( Stream $stream ) : float
$stream Protobuf\Stream
Résultat float

readFixed32() public méthode

Decode a fixed 32bit integer without sign.
public readFixed32 ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

readFixed64() public méthode

Decode a fixed 64bit integer without sign.
public readFixed64 ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

readFloat() public méthode

Decode a 32bit float.
public readFloat ( Stream $stream ) : float
$stream Protobuf\Stream
Résultat float

readSFixed32() public méthode

Decode a fixed 32bit integer with sign.
public readSFixed32 ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

readSFixed64() public méthode

Decode a fixed 64bit integer with sign.
public readSFixed64 ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

readString() public méthode

Decode a string.
public readString ( Stream $stream ) : string
$stream Protobuf\Stream
Résultat string

readUnknown() public méthode

Read unknown scalar value.
public readUnknown ( Stream $stream, integer $wire ) : scalar
$stream Protobuf\Stream
$wire integer
Résultat scalar

readVarint() public méthode

Decode a varint.
public readVarint ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

readZigzag() public méthode

Decodes a zigzag integer of the given bits.
public readZigzag ( Stream $stream ) : integer
$stream Protobuf\Stream
Résultat integer

Property Details

$config protected_oe property

protected Configuration,Protobuf $config
Résultat Protobuf\Configuration

$isBigEndian protected_oe property

protected bool $isBigEndian
Résultat boolean

$stream protected_oe property

protected Stream,Protobuf $stream
Résultat Protobuf\Stream