pocketmine\network\protocol\DataPacket::clean PHP Method

clean() public method

public clean ( )
    public function clean()
    {
        $this->buffer = null;
        $this->isEncoded = false;
        $this->offset = 0;
        return $this;
    }

Usage Example

 public function clean()
 {
     $this->entities = [];
     return parent::clean();
 }
All Usage Examples Of pocketmine\network\protocol\DataPacket::clean