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) { $xfer += $input->readI64($this->startRowOffset); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->rows = array(); $_size104 = 0; $_etype107 = 0; $xfer += $input->readListBegin($_etype107, $_size104); for ($_i108 = 0; $_i108 < $_size104; ++$_i108) { $elem109 = null; $elem109 = new \TRow(); $xfer += $elem109->read($input); $this->rows[] = $elem109; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::LST) { $this->columns = array(); $_size110 = 0; $_etype113 = 0; $xfer += $input->readListBegin($_etype113, $_size110); for ($_i114 = 0; $_i114 < $_size110; ++$_i114) { $elem115 = null; $elem115 = new \TColumn(); $xfer += $elem115->read($input); $this->columns[] = $elem115; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { $xfer += $input->readString($this->binaryColumns); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I32) { $xfer += $input->readI32($this->columnCount); } 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 1: if ($ftype == TType::I64) { $xfer += $input->readI64($this->startRowOffset); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->rows = array(); $_size88 = 0; $_etype91 = 0; $xfer += $input->readListBegin($_etype91, $_size88); for ($_i92 = 0; $_i92 < $_size88; ++$_i92) { $elem93 = null; $elem93 = new TRow(); $xfer += $elem93->read($input); $this->rows[] = $elem93; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::LST) { $this->columns = array(); $_size94 = 0; $_etype97 = 0; $xfer += $input->readListBegin($_etype97, $_size94); for ($_i98 = 0; $_i98 < $_size94; ++$_i98) { $elem99 = null; $elem99 = new TColumn(); $xfer += $elem99->read($input); $this->columns[] = $elem99; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }