Method |
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. |
|