ot::Ip6::Address::SetPrefix() method
Sets the IPv6 address prefix. Only changes the first @p aPrefixLength bits of the address and keeps the rest of the bits in the address as before.
Arguments
aPrefix
A buffer containing the prefix.
aPrefixLength
The prefix length (in bits).