[#BloombergLP-bdlde-CharConvertUtf16-computeRequiredUtf8Bytes-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/CharConvertUtf16.adoc[CharConvertUtf16]::computeRequiredUtf8Bytes :relfileprefix: ../../../ :mrdocs: Return the number of bytes required to store the UTF‐8 translation of the specified UTF‐16 `srcBuffer`, including the terminating null. == Synopsis Declared in `<bdlde_charconvertutf16.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t computeRequiredUtf8Bytes( wchar_t const* srcBuffer, wchar_t const* endPtr = 0, xref:BloombergLP/bdlde/ByteOrder/Enum.adoc[ByteOrder::Enum] byteOrder = ByteOrder::e_HOST); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#