PHP 클래스 Protobuf\Binary\SizeCalculator

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

보호된 프로퍼티들

프로퍼티 타입 설명
$config Protobuf\Configuration

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

computeBoolSize() 공개 메소드

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

computeByteStreamSize() 공개 메소드

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

computeDoubleSize() 공개 메소드

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

computeFixed32Size() 공개 메소드

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

computeFixed64Size() 공개 메소드

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

computeFloatSize() 공개 메소드

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

computeSFixed32Size() 공개 메소드

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

computeSFixed64Size() 공개 메소드

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

computeStringSize() 공개 메소드

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

computeVarintSize() 공개 메소드

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

computeZigzag32Size() 공개 메소드

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

computeZigzag64Size() 공개 메소드

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

프로퍼티 상세

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

protected Configuration,Protobuf $config
리턴 Protobuf\Configuration