◆ clean()
140 $this->buffer = null;
142 $this->sendTime = null;
◆ decode()
◆ encode()
132 $this->buffer = chr(static::$ID);
◆ feof()
83 return !isset($this->buffer{$this->offset});
◆ get()
34 $this->offset = strlen($this->buffer) - 1;
37 }elseif($len ===
true){
38 return substr($this->buffer, $this->offset);
41 return $len === 1 ? $this->buffer{$this->offset++} : substr($this->buffer, ($this->offset += $len) - $len, $len);
◆ getAddress()
getAddress |
( |
& |
$addr, |
|
|
& |
$port, |
|
|
& |
$version = null |
|
) |
| |
|
protected |
75 $addr = ((~$this->getByte()) & 0xff) .
".". ((~$this->getByte()) & 0xff) .
".". ((~$this->getByte()) & 0xff) .
".". ((~$this->getByte()) & 0xff);
◆ getByte()
65 return ord($this->buffer{$this->offset++});
◆ getInt()
◆ getLong()
getLong |
( |
|
$signed = true | ) |
|
|
protected |
◆ getLTriad()
◆ getShort()
getShort |
( |
|
$signed = true | ) |
|
|
protected |
◆ getString()
69 return $this->
get($this->
getShort());
◆ getTriad()
◆ put()
87 $this->buffer .= $str;
◆ putAddress()
putAddress |
( |
|
$addr, |
|
|
|
$port, |
|
|
|
$version = 4 |
|
) |
| |
|
protected |
122 foreach(explode(
".", $addr) as $b){
123 $this->
putByte((~((
int) $b)) & 0xff);
◆ putByte()
111 $this->buffer .= chr($v);
◆ putInt()
◆ putLong()
◆ putLTriad()
◆ putShort()
◆ putString()
◆ putTriad()
◆ $buffer
◆ $ID
◆ $offset
◆ $sendTime
The documentation for this class was generated from the following file:
- src/raklib/protocol/Packet.php