public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, $this->limitUpld);
     $this->intToBytes($a, $this->limitDwnld);
     $this->intToBytes($a, $this->seedLimit);
     $this->longToBytes($a, $this->seedTimeout);
     return $a;
 }
예제 #2
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, count($this->fileinfolist));
     foreach ($this->fileinfolist as $fileinfo) {
         $fileinfo->serialize($a);
     }
     return $a;
 }
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intToBytes($a, count($this->peerlist));
     foreach ($this->peerlist as $peer) {
         $peer->serialize($a);
     }
     return $a;
 }
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     // Size of list
     $this->intToBytes($a, count($this->status));
     foreach ($this->status as $status) {
         $status->serialize($a);
     }
     return $a;
 }
예제 #5
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     // Size of the list.
     $this->intToBytes($a, count($this->filelist));
     // Each entry.
     foreach ($this->filelist as $entry) {
         $entry->serialize($a);
     }
     return $a;
 }
예제 #6
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->intListToBytes($a, $this->context_ids);
     return $a;
 }
예제 #7
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->boolToBytes($a, $this->eraseData);
     return $a;
 }
예제 #8
0
 public function serialize(&$a = array())
 {
     $a = parent::serialize();
     $this->stringListToBytes($a, $this->trackers);
     return $a;
 }