/** * Enter description here... * * @param PhpBuf_IO_Writer_Interface $writer * @param mixed $value */ protected function writeWireTypeData(PhpBuf_IO_Writer_Interface $writer, $value) { // // extremely low memory condition [and/or] no class loaded(using autoload): crash calling call_user_func_array // if (PhpBuf_WireType::WIRETYPE_LENGTH_DELIMITED === $this->wireType) { PhpBuf_WireType_LenghtDelimited::write($writer, $value); } else { call_user_func_array(array('PhpBuf_WireType_' . PhpBuf_WireType::getWireTypeNameById($this->wireType), 'write'), array($writer, $value)); } }
/** * Enter description here... * * @param PhpBuf_IO_Writer_Interface $writer * @param mixed $value */ protected function writeWireTypeData(PhpBuf_IO_Writer_Interface $writer, $value) { call_user_func_array(array('PhpBuf_WireType_' . PhpBuf_WireType::getWireTypeNameById($this->wireType), 'write'), array($writer, $value)); }