예제 #1
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringToBytes($a, $this->buildID);
     $this->longToBytes($a, $this->session);
     return $a;
 }
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intListToBytes($a, $this->contextIDs);
     $this->stringListToBytes($a, $this->filenames);
     return $a;
 }
예제 #3
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intListToBytes($a, $this->sessions);
     $this->stringListToBytes($a, $this->names);
     return $a;
 }
예제 #4
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->context_id);
     $this->boolToBytes($a, $this->allContexts);
     return $a;
 }
예제 #5
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringToBytes($a, $this->username);
     $this->hash->serialize($a);
     return $a;
 }
예제 #6
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringToBytes($a, $this->filename);
     $this->torrent_file->serialize($a);
     $this->boolToBytes($a, $this->start);
     return $a;
 }
예제 #7
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $command_present = true;
     if ($this->which_command == Command::CN_UNAVAILABLE) {
         $command_present = false;
     }
     $this->boolToBytes($a, $command_present);
     if ($command_present) {
         $this->intToBytes($a, $this->which_command);
     }
     return $a;
 }
예제 #8
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $command_present = true;
     if ($this->which_command == Command::CN_UNAVAILABLE) {
         $command_present = false;
     }
     $this->boolToBytes($a, $command_present);
     if ($command_present) {
         $this->intToBytes($a, $this->which_command);
     }
     $message_present = true;
     if (strlen($this->message) == 0 || !$this->isMessagePresent) {
         $message_present = false;
     }
     $this->boolToBytes($a, $message_present);
     if ($message_present) {
         $this->stringToBytes($a, $this->message);
     }
     return $a;
 }
예제 #9
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->command_type);
     return $a;
 }
예제 #10
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->limitUpld);
     $this->intToBytes($a, $this->limitDwnld);
     $this->intToBytes($a, $this->maxUploads);
     $this->intToBytes($a, $this->maxConnections);
     return $a;
 }
예제 #11
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->uintToBytes($a, $this->opid);
     $this->uintToBytes($a, $this->optype);
     $this->uintToBytes($a, $this->opstatus);
     if (strlen($this->opdatastr) > 0) {
         $b = true;
         $this->boolToBytes($a, $b);
         $this->stringToBytes($a, $this->opdatastr);
     } else {
         $b = false;
         $this->boolToBytes($a, $b);
     }
     return $a;
 }
예제 #12
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->longToBytes($a, $this->uptime);
     return $a;
 }
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->uintToBytes($a, $this->id);
     $this->uintToBytes($a, $this->status);
     return $a;
 }