public static function Parser($buffer) { $packet = array(); while (strlen($buffer) > 3) { $len = HabboEncoding::DecodeBit32($buffer) + 4; $packet[] = substr($buffer, 0, $len); $buffer = substr($buffer, $len); } return $packet; }
public function readInt32() { $int32 = HabboEncoding::DecodeBit32($this->packet); $this->pop(4); return $int32; }