IsValid()
Utf8::IsValid(ReadOnlySpan<uint8_t>) method
Returns true if the provided span contains a valid UTF-8 sequence.
static bool System::Text::Unicode::Utf8::IsValid(ReadOnlySpan<uint8_t> buffer)
Arguments
| Parameter | Type | Description |
|---|---|---|
| buffer | ReadOnlySpan<uint8_t> | The UTF-8 bytes to validate. |
Return Value
true if the sequence is valid UTF-8; otherwise, false.
See Also
- Class ReadOnlySpan
- Class Utf8
- Namespace System::Text::Unicode
- Library Aspose.Slides