本文整理汇总了PHP中Command::deserialize方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::deserialize方法的具体用法?PHP Command::deserialize怎么用?PHP Command::deserialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Command
的用法示例。
在下文中一共展示了Command::deserialize方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->stringToBytes($this->username);
$hash = new Status();
$hash->deserialize($data);
$this->status = $hash;
}
示例2: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToString($this->filename, $data);
$this->torrent_file = new sBuffer();
$this->torrent_file->deserialize($data);
$this->bytesToBool($this->start, $data);
}
示例3: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->which_command = Command::CN_UNDEFINED;
$command_present = false;
$this->bytesToBool($command_present, $data);
if ($command_present) {
$this->bytesToInt($this->which_command, $data);
}
}
示例4: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToLong($this->session, $data);
}
示例5: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToInt($this->command_type, $data);
}
示例6: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToString($this->name, $data);
}
示例7: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToInt($this->limitUpld, $data);
$this->bytesToInt($this->limitDwnld, $data);
$this->bytesToInt($this->maxUploads, $data);
$this->bytesToInt($this->maxConnections, $data);
}
示例8: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->which_command = Command::CN_UNDEFINED;
$command_present = false;
$this->bytesToBool($command_present, $data);
if ($command_present) {
$this->bytesToInt($this->which_command, $data);
}
$this->isMessagePresent = false;
$this->bytesToBool($this->isMessagePresent, $data);
if ($this->isMessagePresent) {
$this->bytesToString($this->message, $data);
} else {
$this->message = "";
}
}
示例9: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToIntList($this->sessions, $data);
$this->bytesToStringList($this->names, $data);
}
示例10: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToUint($this->opid, $data);
$this->bytesToUint($this->optype, $data);
$this->bytesToUint($this->opstatus, $data);
$b = false;
$this->bytesToBool($b, $data);
/*
if ($b == true)
{
$this->bytesToString($this->opdatastr, $data);
}
*/
}
示例11: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToIntList($this->contextIDs, $data);
$this->bytesToStringList($this->filenames, $data);
}
示例12: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToInt($this->context_id, $data);
$this->bytesToBool($this->allContexts, $data);
}
示例13: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToUint($this->id, $data);
$tmp = -1;
$this->bytesToUint($tmp, $data);
switch ($tmp) {
case urlStatus::URLS_UNDEF:
case urlStatus::URLS_WORKING:
case urlStatus::URLS_FINISHED:
case urlStatus::URLS_ERROR:
case urlStatus::URLS_CREATE:
case urlStatus::URLS_CREATE_ERR:
$this->status = $tmp;
break;
default:
$this->status = urlStatus::URLS_UNDEF;
break;
}
}
示例14: deserialize
public function deserialize(&$data)
{
parent::deserialize($data);
$this->bytesToUint($this->id, $data);
}