8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5706879 commit 81dfceeCopy full SHA for 81dfcee
api/IPAddress.h
@@ -49,14 +49,7 @@ class IPAddress : public Printable {
49
// to the internal structure rather than a copy of the address this function should only
50
// be used when you know that the usage of the returned uint8_t* will be transient and not
51
// stored.
52
- // IPv4 only (for friends)
53
- uint8_t* raw_address() {
54
- if (_type == IPv4) {
55
- return &_address.bytes[12];
56
- }
57
- return nullptr;
58
- };
59
- uint8_t* raw_bytes() { return _address.bytes; }
+ uint8_t* raw_address() { return _type == IPv4 ? &_address.bytes[12] : _address.bytes; }
60
61
public:
62
// Constructors
0 commit comments