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

reset() public method

public reset ( )
    public function reset()
    {
        $this->buffer = chr($this::NETWORK_ID);
        $this->offset = 0;
    }