Ascii.ToUtf16(ReadOnlySpan<Byte>, Span<Char>, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies text from a source buffer to a destination buffer, converting from ASCII to UTF-16 during the copy.
public:
static System::Buffers::OperationStatus ToUtf16(ReadOnlySpan<System::Byte> source, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static System.Buffers.OperationStatus ToUtf16 (ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten);
static member ToUtf16 : ReadOnlySpan<byte> * Span<char> * int -> System.Buffers.OperationStatus
Public Shared Function ToUtf16 (source As ReadOnlySpan(Of Byte), destination As Span(Of Char), ByRef charsWritten As Integer) As OperationStatus
Parameters
- source
- ReadOnlySpan<Byte>
The source buffer from which ASCII text is read.
- charsWritten
- Int32
When this method returns, contains the number of chars actually written to destination
. It's the same as the number of bytes actually read from source
Returns
An OperationStatus describing the result of the operation.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.