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) { $this->success = array(); $_size175 = 0; $_etype178 = 0; $xfer += $input->readListBegin($_etype178, $_size175); for ($_i179 = 0; $_i179 < $_size175; ++$_i179) { $elem180 = null; $elem180 = new cassandra_TokenRange(); $xfer += $elem180->read($input); $this->success[] = $elem180; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new cassandra_InvalidRequestException(); $xfer += $this->ire->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
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) { $this->success = array(); $_size152 = 0; $_etype155 = 0; $xfer += $input->readListBegin($_etype155, $_size152); for ($_i156 = 0; $_i156 < $_size152; ++$_i156) { $elem157 = null; $elem157 = new cassandra_TokenRange(); $xfer += $elem157->read($input); $this->success[] = $elem157; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }