PHP Class Protobuf\Binary\SizeCalculator

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

Protected Properties

Свойство Type Description
$config Protobuf\Configuration

Méthodes publiques

Méthode Description
__construct ( Configuration $config ) Constructor
computeBoolSize ( ) : integer Compute the number of bytes that would be needed to encode a bool.
computeByteStreamSize ( Stream $value ) : integer Compute the number of bytes that would be needed to encode a stream of bytes.
computeDoubleSize ( ) : integer Compute the number of bytes that would be needed to encode a double.
computeFixed32Size ( ) : integer Compute the number of bytes that would be needed to encode a fixed32.
computeFixed64Size ( ) : integer Compute the number of bytes that would be needed to encode a fixed64.
computeFloatSize ( ) : integer Compute the number of bytes that would be needed to encode a float.
computeSFixed32Size ( ) : integer Compute the number of bytes that would be needed to encode a sFixed32.
computeSFixed64Size ( ) : integer Compute the number of bytes that would be needed to encode a sFixed64.
computeStringSize ( integer $value ) : integer Compute the number of bytes that would be needed to encode a string.
computeVarintSize ( integer $value ) : integer Compute the number of bytes that would be needed to encode a varint.
computeZigzag32Size ( integer $value ) : integer Compute the number of bytes that would be needed to encode a zigzag 32.
computeZigzag64Size ( integer $value ) : integer Compute the number of bytes that would be needed to encode a zigzag 64.

Method Details

__construct() public méthode

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

computeBoolSize() public méthode

Compute the number of bytes that would be needed to encode a bool.
public computeBoolSize ( ) : integer
Résultat integer

computeByteStreamSize() public méthode

Compute the number of bytes that would be needed to encode a stream of bytes.
public computeByteStreamSize ( Stream $value ) : integer
$value Protobuf\Stream
Résultat integer

computeDoubleSize() public méthode

Compute the number of bytes that would be needed to encode a double.
public computeDoubleSize ( ) : integer
Résultat integer

computeFixed32Size() public méthode

Compute the number of bytes that would be needed to encode a fixed32.
public computeFixed32Size ( ) : integer
Résultat integer

computeFixed64Size() public méthode

Compute the number of bytes that would be needed to encode a fixed64.
public computeFixed64Size ( ) : integer
Résultat integer

computeFloatSize() public méthode

Compute the number of bytes that would be needed to encode a float.
public computeFloatSize ( ) : integer
Résultat integer

computeSFixed32Size() public méthode

Compute the number of bytes that would be needed to encode a sFixed32.
public computeSFixed32Size ( ) : integer
Résultat integer

computeSFixed64Size() public méthode

Compute the number of bytes that would be needed to encode a sFixed64.
public computeSFixed64Size ( ) : integer
Résultat integer

computeStringSize() public méthode

Compute the number of bytes that would be needed to encode a string.
public computeStringSize ( integer $value ) : integer
$value integer
Résultat integer

computeVarintSize() public méthode

Compute the number of bytes that would be needed to encode a varint.
public computeVarintSize ( integer $value ) : integer
$value integer
Résultat integer

computeZigzag32Size() public méthode

Compute the number of bytes that would be needed to encode a zigzag 32.
public computeZigzag32Size ( integer $value ) : integer
$value integer
Résultat integer

computeZigzag64Size() public méthode

Compute the number of bytes that would be needed to encode a zigzag 64.
public computeZigzag64Size ( integer $value ) : integer
$value integer
Résultat integer

Property Details

$config protected_oe property

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