◆ clean()
68 $this->seqNumber = null;
69 return parent::clean();
◆ decode()
54 while(!$this->
feof()){
56 $data = substr($this->buffer, $this->offset);
59 if(strlen($packet->buffer) === 0){
62 $this->packets[] = $packet;
◆ encode()
36 foreach($this->packets as $packet){
37 $this->
put($packet instanceof EncapsulatedPacket ? $packet->toBinary() : (string) $packet);
◆ length()
43 foreach($this->packets as $packet){
44 $length += $packet instanceof EncapsulatedPacket ? $packet->getTotalLength() : strlen($packet);
◆ $packets
◆ $seqNumber
The documentation for this class was generated from the following file:
- src/raklib/protocol/DataPacket.php