◆ clean()
99 return parent::clean();
◆ decode()
81 for($i = 0; $i < $count and !$this->
feof() and $cnt < 4096; ++$i){
85 if(($end - $start) > 512){
88 for($c = $start; $c <= $end; ++$c){
89 $this->packets[$cnt++] = $c;
92 $this->packets[$cnt++] = $this->
getLTriad();
◆ encode()
32 sort($this->packets, SORT_NUMERIC);
33 $count = count($this->packets);
38 $start = $this->packets[0];
39 $last = $this->packets[0];
41 while($pointer < $count){
42 $current = $this->packets[$pointer++];
43 $diff = $current - $last;
50 $start = $last = $current;
55 $start = $last = $current;
73 $this->buffer .= $payload;
◆ $packets
The documentation for this class was generated from the following file:
- src/raklib/protocol/AcknowledgePacket.php