Ascii.FromUtf16(ReadOnlySpan<Char>, Span<Byte>, 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 UTF-16 to ASCII during the copy.
public:
static System::Buffers::OperationStatus FromUtf16(ReadOnlySpan<char> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static System.Buffers.OperationStatus FromUtf16 (ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten);
static member FromUtf16 : ReadOnlySpan<char> * Span<byte> * int -> System.Buffers.OperationStatus
Public Shared Function FromUtf16 (source As ReadOnlySpan(Of Char), destination As Span(Of Byte), ByRef bytesWritten As Integer) As OperationStatus
Parameters
- source
- ReadOnlySpan<Char>
The source buffer from which UTF-16 text is read.
- bytesWritten
- Int32
When this method returns, contains the number of bytes actually written to destination
. It's the same as the number of chars actually read from source
.
Returns
An OperationStatus describing the result of the operation.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για