Converts a string in one encoding type to another (as specified by the
class' template parameters).
Makes a guess at the required size of output buffer, simply setting it
to the same size as the input buffer. Then repeatedly tries converting
the input and increasing the size of the output buffer until the
conversion succeeds.
To avoid repeated memory allocation, if you need to call this function
many times, it's best to always pass the same output buffer.
Converts a string in one encoding type to another (as specified by the class' template parameters).
Makes a guess at the required size of output buffer, simply setting it to the same size as the input buffer. Then repeatedly tries converting the input and increasing the size of the output buffer until the conversion succeeds.
To avoid repeated memory allocation, if you need to call this function many times, it's best to always pass the same output buffer.