Lines Matching refs:output
271 private function _writeMap($var, $spec, $output) argument
287 $xfer += $output->writeMapBegin($ktype, $vtype, count($var));
290 $xfer += $output->$kwrite($key);
294 $xfer += $key->write($output);
297 $xfer += $this->_writeMap($key, $kspec, $output);
300 $xfer += $this->_writeList($key, $kspec, $output, false);
303 $xfer += $this->_writeList($key, $kspec, $output, true);
308 $xfer += $output->$vwrite($val);
312 $xfer += $val->write($output);
315 $xfer += $this->_writeMap($val, $vspec, $output);
318 $xfer += $this->_writeList($val, $vspec, $output, false);
321 $xfer += $this->_writeList($val, $vspec, $output, true);
326 $xfer += $output->writeMapEnd();
331 private function _writeList($var, $spec, $output, $set=false) argument
342 $xfer += $output->writeSetBegin($etype, count($var));
344 $xfer += $output->writeListBegin($etype, count($var));
349 $xfer += $output->$ewrite($elem);
353 $xfer += $elem->write($output);
356 $xfer += $this->_writeMap($elem, $espec, $output);
359 $xfer += $this->_writeList($elem, $espec, $output, false);
362 $xfer += $this->_writeList($elem, $espec, $output, true);
368 $xfer += $output->writeSetEnd();
370 $xfer += $output->writeListEnd();
376 protected function _write($class, $spec, $output) argument
379 $xfer += $output->writeStructBegin($class);
384 $xfer += $output->writeFieldBegin($var, $ftype, $fid);
387 $xfer += $output->$func($this->$var);
391 $xfer += $this->$var->write($output);
394 $xfer += $this->_writeMap($this->$var, $fspec, $output);
397 $xfer += $this->_writeList($this->$var, $fspec, $output, false);
400 $xfer += $this->_writeList($this->$var, $fspec, $output, true);
404 $xfer += $output->writeFieldEnd();
407 $xfer += $output->writeFieldStop();
408 $xfer += $output->writeStructEnd();
434 abstract public function write($output); argument
622 private function _writeMap($var, $spec, $output) argument
638 $xfer += $output->writeMapBegin($ktype, $vtype, count($var));
641 $xfer += $output->$kwrite($key);
645 $xfer += $key->write($output);
648 $xfer += $this->_writeMap($key, $kspec, $output);
651 $xfer += $this->_writeList($key, $kspec, $output, false);
654 $xfer += $this->_writeList($key, $kspec, $output, true);
659 $xfer += $output->$vwrite($val);
663 $xfer += $val->write($output);
666 $xfer += $this->_writeMap($val, $vspec, $output);
669 $xfer += $this->_writeList($val, $vspec, $output, false);
672 $xfer += $this->_writeList($val, $vspec, $output, true);
677 $xfer += $output->writeMapEnd();
682 private function _writeList($var, $spec, $output, $set=false) argument
693 $xfer += $output->writeSetBegin($etype, count($var));
695 $xfer += $output->writeListBegin($etype, count($var));
700 $xfer += $output->$ewrite($elem);
704 $xfer += $elem->write($output);
707 $xfer += $this->_writeMap($elem, $espec, $output);
710 $xfer += $this->_writeList($elem, $espec, $output, false);
713 $xfer += $this->_writeList($elem, $espec, $output, true);
719 $xfer += $output->writeSetEnd();
721 $xfer += $output->writeListEnd();
727 protected function _write($class, $spec, $output) argument
730 $xfer += $output->writeStructBegin($class);
735 $xfer += $output->writeFieldBegin($var, $ftype, $fid);
738 $xfer += $output->$func($this->$var);
742 $xfer += $this->$var->write($output);
745 $xfer += $this->_writeMap($this->$var, $fspec, $output);
748 $xfer += $this->_writeList($this->$var, $fspec, $output, false);
751 $xfer += $this->_writeList($this->$var, $fspec, $output, true);
755 $xfer += $output->writeFieldEnd();
758 $xfer += $output->writeFieldStop();
759 $xfer += $output->writeStructEnd();
787 public function read($output) argument
789 return $this->_read('TApplicationException', self::$_TSPEC, $output);
792 public function write($output) argument
795 $xfer += $output->writeStructBegin('TApplicationException');
797 $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
798 $xfer += $output->writeString($message);
799 $xfer += $output->writeFieldEnd();
802 $xfer += $output->writeFieldBegin('type', TType::I32, 2);
803 $xfer += $output->writeI32($code);
804 $xfer += $output->writeFieldEnd();
806 $xfer += $output->writeFieldStop();
807 $xfer += $output->writeStructEnd();