本文整理汇总了PHP中thrift_protocol_binary_deserialize函数的典型用法代码示例。如果您正苦于以下问题:PHP thrift_protocol_binary_deserialize函数的具体用法?PHP thrift_protocol_binary_deserialize怎么用?PHP thrift_protocol_binary_deserialize使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了thrift_protocol_binary_deserialize函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->auth_token = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->auth_token);
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:33,代码来源:api_10.FacebookApi10_auth_getSession_args.php
示例2: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->method_feed = thrift_protocol_binary_deserialize(TType::LST, $input);
} else {
$this->method_feed = array();
$_size105 = 0;
$_etype108 = 0;
$xfer += $input->readListBegin($_etype108, $_size105);
for ($_i109 = 0; $_i109 < $_size105; ++$_i109) {
$elem110 = null;
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$elem110 = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($elem110);
}
$this->method_feed[] = $elem110;
}
$xfer += $input->readListEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::BOOL) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->serial_only = thrift_protocol_binary_deserialize(TType::BOOL, $input);
} else {
$xfer += $input->readBool($this->serial_only);
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:57,代码来源:api_10.FacebookApi10_batch_run_args.php
示例3: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::I32) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->uid1 = thrift_protocol_binary_deserialize(TType::I32, $input);
} else {
$xfer += $input->readI32($this->uid1);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::I32) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->uid2 = thrift_protocol_binary_deserialize(TType::I32, $input);
} else {
$xfer += $input->readI32($this->uid2);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::BOOL) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->are_friends = thrift_protocol_binary_deserialize(TType::BOOL, $input);
} else {
$xfer += $input->readBool($this->are_friends);
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:55,代码来源:api_10.friend_info.php
示例4: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 0:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->success = thrift_protocol_binary_deserialize(TType::LST, $input);
} else {
$this->success = array();
$_size63 = 0;
$_etype66 = 0;
$xfer += $input->readListBegin($_etype66, $_size63);
for ($_i67 = 0; $_i67 < $_size63; ++$_i67) {
$elem68 = null;
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$elem68 = thrift_protocol_binary_deserialize(TType::I32, $input);
} else {
$xfer += $input->readI32($elem68);
}
$this->success[] = $elem68;
}
$xfer += $input->readListEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 1:
if ($ftype == TType::STRUCT) {
$this->error_response = new api10_FacebookApiException();
$xfer += $this->error_response->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:54,代码来源:api_10.FacebookApi10_friends_get_result.php
示例5: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->properties = thrift_protocol_binary_deserialize(TType::LST, $input);
} else {
$this->properties = array();
$_size91 = 0;
$_etype94 = 0;
$xfer += $input->readListBegin($_etype94, $_size91);
for ($_i95 = 0; $_i95 < $_size91; ++$_i95) {
$elem96 = null;
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$elem96 = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($elem96);
}
$this->properties[] = $elem96;
}
$xfer += $input->readListEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:46,代码来源:api_10.FacebookApi10_admin_getAppProperties_args.php
示例6: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 0:
if ($ftype == TType::BOOL) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->success = thrift_protocol_binary_deserialize(TType::BOOL, $input);
} else {
$xfer += $input->readBool($this->success);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 1:
if ($ftype == TType::STRUCT) {
$this->error_response = new api10_FacebookApiException();
$xfer += $this->error_response->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:41,代码来源:api_10.FacebookApi10_feed_publishActionOfUser_result.php
示例7: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::STRUCT) {
$this->location = new api10_location();
$xfer += $this->location->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->company_name = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->company_name);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->position = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->position);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->description = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->description);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 5:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->start_date = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->start_date);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 6:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->end_date = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->end_date);
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:85,代码来源:api_10.work_info.php
示例8: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->street = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->street);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->city = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->city);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->state = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->state);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->country = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->country);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 5:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->zip = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->zip);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 6:
if ($ftype == TType::DOUBLE) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->latitude = thrift_protocol_binary_deserialize(TType::DOUBLE, $input);
} else {
$xfer += $input->readDouble($this->latitude);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 7:
if ($ftype == TType::DOUBLE) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->longitude = thrift_protocol_binary_deserialize(TType::DOUBLE, $input);
} else {
$xfer += $input->readDouble($this->longitude);
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:99,代码来源:api_10.location.php
示例9: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::I32) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->error_code = thrift_protocol_binary_deserialize(TType::I32, $input);
} else {
$xfer += $input->readI32($this->error_code);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->error_msg = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->error_msg);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->request_args = thrift_protocol_binary_deserialize(TType::LST, $input, 'arg');
} else {
$this->request_args = array();
$_size49 = 0;
$_etype52 = 0;
$xfer += $input->readListBegin($_etype52, $_size49);
for ($_i53 = 0; $_i53 < $_size49; ++$_i53) {
$elem54 = null;
$elem54 = new api10_arg();
$xfer += $elem54->read($input);
$this->request_args[] = $elem54;
}
$xfer += $input->readListEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:luxurymask,项目名称:platform,代码行数:65,代码来源:api_10.FacebookApiException.php
示例10: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::I64) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->app_id = thrift_protocol_binary_deserialize(TType::I64, $input);
} else {
$xfer += $input->readI64($this->app_id);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->api_key = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->api_key);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->canvas_name = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->canvas_name);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->display_name = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->display_name);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 5:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->icon_url = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->icon_url);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 6:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->logo_url = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->logo_url);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 7:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->developers = thrift_protocol_binary_deserialize(TType::LST, $input, 'developer_info');
} else {
$this->developers = array();
$_size42 = 0;
$_etype45 = 0;
$xfer += $input->readListBegin($_etype45, $_size42);
for ($_i46 = 0; $_i46 < $_size42; ++$_i46) {
$elem47 = null;
$elem47 = new api10_developer_info();
$xfer += $elem47->read($input);
$this->developers[] = $elem47;
}
$xfer += $input->readListEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
//.........这里部分代码省略.........
开发者ID:luxurymask,项目名称:platform,代码行数:101,代码来源:api_10.app_info.php
示例11: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->about_me = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->about_me);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->activities = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->activities);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->affiliations = thrift_protocol_binary_deserialize(TType::LST, $input, 'affiliation');
} else {
$this->affiliations = array();
$_size7 = 0;
$_etype10 = 0;
$xfer += $input->readListBegin($_etype10, $_size7);
for ($_i11 = 0; $_i11 < $_size7; ++$_i11) {
$elem12 = null;
$elem12 = new api10_affiliation();
$xfer += $elem12->read($input);
$this->affiliations[] = $elem12;
}
$xfer += $input->readListEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->birthday = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->birthday);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 5:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->books = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->books);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 6:
if ($ftype == TType::STRUCT) {
$this->current_location = new api10_location();
$xfer += $this->current_location->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 7:
if ($ftype == TType::LST) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->education_history = thrift_protocol_binary_deserialize(TType::LST, $input, 'education_info');
} else {
$this->education_history = array();
$_size13 = 0;
$_etype16 = 0;
$xfer += $input->readListBegin($_etype16, $_size13);
for ($_i17 = 0; $_i17 < $_size13; ++$_i17) {
$elem18 = null;
$elem18 = new api10_education_info();
$xfer += $elem18->read($input);
$this->education_history[] = $elem18;
//.........这里部分代码省略.........
开发者ID:luxurymask,项目名称:platform,代码行数:101,代码来源:api_10.user.php
示例12: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->title = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->title);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->body = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->body);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->image_1 = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->image_1);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->image_1_link = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->image_1_link);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 5:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->image_2 = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->image_2);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 6:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->image_2_link = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->image_2_link);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 7:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->image_3 = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->image_3);
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 8:
if ($ftype == TType::STRING) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->image_3_link = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($this->image_3_link);
}
} else {
$xfer += $input->skip($ftype);
}
//.........这里部分代码省略.........
开发者ID:luxurymask,项目名称:platform,代码行数:101,代码来源:api_10.FacebookApi10_feed_publishActionOfUser_args.php
示例13: read
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 0:
if ($ftype == TType::MAP) {
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$this->success = thrift_protocol_binary_deserialize(TType::MAP, $input);
} else {
$this->success = array();
$_size21 = 0;
$_ktype22 = 0;
$_vtype23 = 0;
$xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21);
for ($_i25 = 0; $_i25 < $_size21; ++$_i25) {
$key26 = '';
$val27 = 0.0;
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$key26 = thrift_protocol_binary_deserialize(TType::STRING, $input);
} else {
$xfer += $input->readString($key26);
}
if ($input instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_binary_deserialize')) {
$val27 = thrift_protocol_binary_deserialize(TType::DOUBLE, $input);
} else {
$xfer += $input->readDouble($val27);
}
$this->success[$key26] = $val27;
}
$xfer += $input->readMapEnd();
}
} else {
$xfer += $input->skip($ftype);
}
break;
case 1:
if ($ftype == TType::STRUCT) {
$this->ouch = new RegressionError();
$xfer += $this->ouch->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
开发者ID:hammer,项目名称:rpyd,代码行数:61,代码来源:rpyd.php
注:本文中的thrift_protocol_binary_deserialize函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论