Encode()
JavaScriptEncoder::Encode(ReadOnlySpan<char16_t>, Span<char16_t>, int32_t&, int32_t&, bool) method
Escapes a UTF-16 input span into a UTF-16 destination span.
Buffers::OperationStatus System::Text::Encodings::Web::JavaScriptEncoder::Encode(ReadOnlySpan<char16_t> text, Span<char16_t> destination, int32_t &charsConsumed, int32_t &charsWritten, bool isFinalBlock)
Arguments
| Parameter | Type | Description |
|---|---|---|
| text | ReadOnlySpan<char16_t> | The source UTF-16 text. |
| destination | Span<char16_t> | The destination buffer for the escaped output. |
| charsConsumed | int32_t& | The number of source characters consumed. |
| charsWritten | int32_t& | The number of destination characters written. |
| isFinalBlock | bool | Whether this is the final block of input. |
Return Value
The operation status.
See Also
- Enum OperationStatus
- Class ReadOnlySpan
- Class Span
- Class JavaScriptEncoder
- Namespace System::Text::Encodings::Web
- Library Aspose.Slides