ot::Ip4::Address::SetBytes() method
Sets the IPv4 address from a given byte array.
Syntax
void SetBytes(const uint8_t *aBuffer); Arguments
aBuffer
Pointer to an array containing the IPv4 address. `kSize` bytes from the buffer are copied to form the IPv4 address.