original_string: public static function serialize($object)
      {
          $transport = new TMemoryBuffer();
          $protocol = new TBinaryProtocolAccelerated($transport);
          if (function_exists('thrift_protocol_write_binary')) {
              thrift_protocol_write_binary(
                  $protocol,
                  $object->getName(),
                  TMessageType::REPLY,
                  $object,
                  0,
                  $protocol->isStrictWrite()
              );
  
              $protocol->readMessageBegin($unused_name, $unused_type, $unused_seqid);
          } else {
              $object->write($protocol);
          }
          $protocol->getTransport()->flush();
  
          return $transport->getBuffer();
      }
code: public static function serialize($object)
      {
          $transport = new TMemoryBuffer();
          $protocol = new TBinaryProtocolAccelerated($transport);
          if (function_exists('thrift_protocol_write_binary')) {
              thrift_protocol_write_binary(
                  $protocol,
                  $object->getName(),
                  TMessageType::REPLY,
                  $object,
                  0,
                  $protocol->isStrictWrite()
              );
  
              $protocol->readMessageBegin($unused_name, $unused_type, $unused_seqid);
          } else {
              $object->write($protocol);
          }
          $protocol->getTransport()->flush();
  
          return $transport->getBuffer();
      }
code_tokens: public static function serialize ( $ object ) { $ transport = new TMemoryBuffer ( ) ; $ protocol = new TBinaryProtocolAccelerated ( $ transport ) ; if ( function_exists ( 'thrift_protocol_write_binary' ) ) { thrift_protocol_write_binary ( $ protocol , $ object -> getName ( ) , TMessageType :: REPLY , $ object , 0 , $ protocol -> isStrictWrite ( ) ) ; $ protocol -> readMessageBegin ( $ unused_name , $ unused_type , $ unused_seqid ) ; } else { $ object -> write ( $ protocol ) ; } $ protocol -> getTransport ( ) -> flush ( ) ; return $ transport -> getBuffer ( ) ; }
docstring: normal deserialization.
docstring_tokens: normal deserialization .