UTF8Encoding.TryGetChars 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.
Decodes into a span of chars a set of bytes from the specified read-only span if the destination is large enough.
public:
override bool TryGetChars(ReadOnlySpan<System::Byte> bytes, Span<char> chars, [Runtime::InteropServices::Out] int % charsWritten);
public override bool TryGetChars (ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten);
override this.TryGetChars : ReadOnlySpan<byte> * Span<char> * int -> bool
Public Overrides Function TryGetChars (bytes As ReadOnlySpan(Of Byte), chars As Span(Of Char), ByRef charsWritten As Integer) As Boolean
Parameters
- bytes
- ReadOnlySpan<Byte>
A read-only span containing the sequence of bytes to decode.
- charsWritten
- Int32
Upon successful completion of the operation, the number of chars decoded into chars
.
Returns
true
if all of the characters were decoded into the destination; false
if the destination was too small to contain all the decoded chars.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.