Overview

Packages

  • None
  • thrift
    • transport

Classes

  • Argument
  • ContainerType
  • FacebookBase
  • FacebookService_aliveSince_args
  • FacebookService_aliveSince_result
  • FacebookService_getCounter_args
  • FacebookService_getCounter_result
  • FacebookService_getCounters_args
  • FacebookService_getCounters_result
  • FacebookService_getCpuProfile_args
  • FacebookService_getCpuProfile_result
  • FacebookService_getLimitedReflection_args
  • FacebookService_getLimitedReflection_result
  • FacebookService_getName_args
  • FacebookService_getName_result
  • FacebookService_getOption_args
  • FacebookService_getOption_result
  • FacebookService_getOptions_args
  • FacebookService_getOptions_result
  • FacebookService_getStatus_args
  • FacebookService_getStatus_result
  • FacebookService_getStatusDetails_args
  • FacebookService_getStatusDetails_result
  • FacebookService_getVersion_args
  • FacebookService_getVersion_result
  • FacebookService_reinitialize_args
  • FacebookService_setOption_args
  • FacebookService_setOption_result
  • FacebookService_shutdown_args
  • FacebookServiceClient
  • FacebookServiceProcessor
  • fb_status
  • Method
  • Service
  • SimpleType
  • TBase
  • TBinaryProtocol
  • TBinaryProtocolAccelerated
  • TBinaryProtocolFactory
  • ThriftType
  • TMessageType
  • TProtocol
  • TType
  • TTypeTag

Interfaces

  • FacebookServiceIf
  • Horde_Thrift
  • TProtocolFactory

Exceptions

  • TApplicationException
  • TException
  • TProtocolException
  • TTransportException

Functions

  • apc_fetch
  • apc_store
  • Overview
  • Package
  • Class
  • Tree

Class TBinaryProtocol

Binary implementation of the Thrift protocol.

TProtocol
Extended by TBinaryProtocol

Direct known subclasses

TBinaryProtocolAccelerated
Author: Mark Slee mcslee@facebook.com
Author: Marc Kwiatkowski marc@facebook.com
Located at Horde/Thrift/thrift_root/protocol/TBinaryProtocol.php
Methods summary
public
# __construct( mixed $trans, mixed $strictRead = false, mixed $strictWrite = true )

Constructor

Constructor

public
# writeMessageBegin( string $name, integer $type, integer $seqid )

Writes the message header

Writes the message header

Parameters

$name
Function name
$type
message type TMessageType::CALL or TMessageType::REPLY
$seqid
The sequence id of this message
public
# writeMessageEnd( )

Close the message

Close the message

public integer
# writeStructBegin( string $name )

Writes a struct header.

Writes a struct header.

Parameters

$name
Struct name

Returns

integer
How many bytes written

Throws

TException
on write error
public integer
# writeStructEnd( )

Close a struct.

Close a struct.

Returns

integer
How many bytes written

Throws

TException
on write error
public
# writeFieldBegin( mixed $fieldName, mixed $fieldType, mixed $fieldId )
public
# writeFieldEnd( )
public
# writeFieldStop( )
public
# writeMapBegin( mixed $keyType, mixed $valType, mixed $size )
public
# writeMapEnd( )
public
# writeListBegin( mixed $elemType, mixed $size )
public
# writeListEnd( )
public
# writeSetBegin( mixed $elemType, mixed $size )
public
# writeSetEnd( )
public
# writeBool( mixed $value )
public
# writeByte( mixed $value )
public
# writeI16( mixed $value )
public
# writeI32( mixed $value )
public
# writeI64( mixed $value )
public
# writeDouble( mixed $value )
public
# writeString( mixed $value )
public
# readMessageBegin( string & $name, integer & $type, mixed & $seqid )

Reads the message header

Reads the message header

Parameters

$name
Function name
$type
message type TMessageType::CALL or TMessageType::REPLY
$seqid

Parem

int $seqid The sequence id of this message
public
# readMessageEnd( )

Read the close of message

Read the close of message

public
# readStructBegin( mixed & $name )
public
# readStructEnd( )
public
# readFieldBegin( mixed & $name, mixed & $fieldType, mixed & $fieldId )
public
# readFieldEnd( )
public
# readMapBegin( mixed & $keyType, mixed & $valType, mixed & $size )
public
# readMapEnd( )
public
# readListBegin( mixed & $elemType, mixed & $size )
public
# readListEnd( )
public
# readSetBegin( mixed & $elemType, mixed & $size )
public
# readSetEnd( )
public
# readBool( mixed & $value )
public
# readByte( mixed & $value )
public
# readI16( mixed & $value )
public
# readI32( mixed & $value )
public
# readI64( mixed & $value )
public
# readDouble( mixed & $value )
public
# readString( mixed & $value )
Methods inherited from TProtocol
getTransport(), skip(), skipBinary()
Constants summary
float VERSION_MASK
# 0xffff0000
float VERSION_1
# 0x80010000
Properties inherited from TProtocol
$TBINARYPROTOCOLACCELERATED
API documentation generated by ApiGen