Provides static methods for working with UTF-8 encoded data.
Definition: utf8.h:14
static Buffers::OperationStatus FromUtf16(ReadOnlySpan< char16_t > source, Span< uint8_t > destination, int32_t &charsRead, int32_t &bytesWritten, bool replaceInvalidSequences, bool isFinalBlock)
Converts a span of UTF-16 characters into a span of UTF-8 bytes.
static bool IsValid(ReadOnlySpan< uint8_t > buffer)
Returns true if the provided span contains a valid UTF-8 sequence.