public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->stringToBytes($this->username);
     $hash = new Status();
     $hash->deserialize($data);
     $this->status = $hash;
 }
 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);
 }
 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
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToLong($this->session, $data);
 }
示例#5
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToInt($this->command_type, $data);
 }
示例#6
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToString($this->name, $data);
 }
示例#7
0
 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
0
 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 = "";
     }
 }
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToIntList($this->sessions, $data);
     $this->bytesToStringList($this->names, $data);
 }
示例#10
0
 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);
     		}
     */
 }
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToIntList($this->contextIDs, $data);
     $this->bytesToStringList($this->filenames, $data);
 }
示例#12
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToInt($this->context_id, $data);
     $this->bytesToBool($this->allContexts, $data);
 }
 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;
     }
 }
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToUint($this->id, $data);
 }