Properly handle u8 pointers when assigning and comparing by mcspr · Pull Request #8818 · esp8266/Arduino (original) (raw)
- Simplify ctors and operator=, use a common code paths instead of special handling here and there
- Fix IPAddress::operator= needs 32-bit aligned pointer #8817 u8<->u32 assignment with pointers, copy before using u8 data
- Do not use raw_address() internally
raw6() is one thing left over, we sometimes have u8 scope
at the end so it is not techically valid code to reinterpret like that. alignment works out, though
tbh I'd prefer we return a real value instead of pointer for our internal usage, and leave ptr access for Arduino compatibility (meaning, std::array<uint8_t, 4> and std::array<uint16_t, 8> / std::array<uint8_t, 16> and operate on that vs. weird overloads all over the place and no size checks)