raklib\protocol\Packet::encode PHP Method

encode() public method

public encode ( )
    public function encode()
    {
        $this->buffer = chr(static::$ID);
    }

Usage Example

 public function encode()
 {
     parent::encode();
     $this->buffer .= Binary::writeLong($this->clientID);
     $this->buffer .= Binary::writeLong($this->session);
     $this->buffer .= "";
 }
All Usage Examples Of raklib\protocol\Packet::encode