You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a test run to see what it's like to work with the new API.
So far, it seems to be OK, although I keep forgetting the parameters for the static methods, which is annoying.
Instinctively I'm reaching for instance methods, and I have to keep reminding myself why I chose to implement
the new API this way instead of using instance methods (it's because this design is more resistant to mistakes).
$this->systemAddresses[$i] = $in->getOffset() + 16 < $len ? $in->getAddress() : $dummy; //HACK: avoids trying to read too many addresses on bad data
72
+
$this->systemAddresses[$i] = $in->getOffset() + 16 < $len ? PacketSerializer::getAddress($in) : $dummy; //HACK: avoids trying to read too many addresses on bad data
0 commit comments