GetBytes() const
Gets the IPv4 address as a pointer to a byte array.
SetBytes()
Sets the IPv4 address from a given byte array.
Sets the IPv4 address from a given IPv4-mapped IPv6 address.
Sets the IPv4 address by performing NAT64 address translation from a given IPv6 address as specified in RFC 6052. The NAT64 @p aPrefixLength MUST be one of the following values: 32, 40, 48, 56, 64, or 96, otherwise the behavior of this method is undefined.
SynthesizeFromCidrAndHost()
Sets the IPv4 address from the given CIDR and the host field.
FromString()
Parses an IPv4 address string terminated by `aTerminatorChar`. The string MUST follow the quad-dotted notation of four decimal values (ranging from 0 to 255 each). For example, "127.0.0.1".
ToString() const
Converts the address to a string. The string format uses quad-dotted notation of four bytes in the address (e.g., "127.0.0.1"). If the resulting string does not fit in @p aBuffer (within its @p aSize characters), the string will be truncated but the outputted string is always null-terminated.
ToString() const
Converts the address to a string. The string format uses quad-dotted notation of four bytes in the address (e.g., "127.0.0.1"). If the resulting string does not fit in @p aBuffer (within its @p aSize characters), the string will be truncated but the outputted string is always null-terminated.
ToString() const
Converts the address to a string. The string format uses quad-dotted notation of four bytes in the address (e.g., "127.0.0.1"). If the resulting string does not fit in @p aBuffer (within its @p aSize characters), the string will be truncated but the outputted string is always null-terminated.