System::Text::Unicode::Utf8::FromUtf16 method
Contents
[
Hide
]Utf8::FromUtf16 method
Converts a span of UTF-16 characters into a span of UTF-8 bytes.
static Buffers::OperationStatus System::Text::Unicode::Utf8::FromUtf16(ReadOnlySpan<char16_t> source, Span<uint8_t> destination, int32_t &charsRead, int32_t &bytesWritten, bool replaceInvalidSequences, bool isFinalBlock)
| Parameter | Type | Description |
|---|---|---|
| source | ReadOnlySpan<char16_t> | The UTF-16 source characters. |
| destination | Span<uint8_t> | The destination buffer for the UTF-8 bytes. |
| charsRead | int32_t& | The number of source characters consumed. |
| bytesWritten | int32_t& | The number of destination bytes written. |
| replaceInvalidSequences | bool | Whether to replace invalid sequences with the replacement character. |
| isFinalBlock | bool | Whether this is the final block of input. |
ReturnValue
The operation status.
See Also
- Enum OperationStatus
- Class ReadOnlySpan
- Class Span
- Class Utf8
- Namespace System::Text::Unicode
- Library Aspose.TeX for C++