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(); $_size214 = 0; $_etype217 = 0; $xfer += $input->readListBegin($_etype217, $_size214); for ($_i218 = 0; $_i218 < $_size214; ++$_i218) { $elem219 = null; $elem219 = new Hypertable_ThriftGen_NamespaceListing(); $xfer += $elem219->read($input); $this->success[] = $elem219; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 1: if ($ftype == TType::STRUCT) { $this->e = new Hypertable_ThriftGen_ClientException(); $xfer += $this->e->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'is_namespace', 'type' => TType::BOOL)); } if (is_array($vals)) { if (isset($vals['name'])) { $this->name = $vals['name']; } if (isset($vals['is_namespace'])) { $this->is_namespace = $vals['is_namespace']; } } }