You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the size of the char[] is increased to be at least 15, then it prints the desired output. The issue is the implementation is comparing the target destination buffer against the maximum size of a rendered IPv4 address, and failing if the destination is smaller than that.
The text was updated successfully, but these errors were encountered:
If the size of the char[] is increased to be at least 15, then it prints the desired output. The issue is the implementation is comparing the target destination buffer against the maximum size of a rendered IPv4 address, and failing if the destination is smaller than that.
Ouch, so e.g. google dns (8.8.8.8, 8.8.4.4) can't be parsed currently?
It'll be parsed fine. It's just if you give a buffer smaller than 15 to TryFormat, TryFormat will return false. When whatever is formatting then grows the destination buffer to >= 15, it'll render fine.
This:
should print:
but instead it prints:
If the size of the char[] is increased to be at least 15, then it prints the desired output. The issue is the implementation is comparing the target destination buffer against the maximum size of a rendered IPv4 address, and failing if the destination is smaller than that.
The text was updated successfully, but these errors were encountered: