Convert.TryToHexString 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.
Converts a span of 8-bit unsigned integers to its equivalent span representation that is encoded with uppercase hex characters.
public:
static bool TryToHexString(ReadOnlySpan<System::Byte> source, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static bool TryToHexString (ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten);
static member TryToHexString : ReadOnlySpan<byte> * Span<char> * int -> bool
Public Shared Function TryToHexString (source As ReadOnlySpan(Of Byte), destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
Parameters
- source
- ReadOnlySpan<Byte>
A span of 8-bit unsigned integers.
- charsWritten
- Int32
When this method returns, contains the number of chars that were written in destination
.
Returns
true
if the conversion was successful; otherwise, false
.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.