Edit

Share via


Convert.TryToHexStringLower Method

Definition

Overloads

TryToHexStringLower(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Converts a span of 8-bit unsigned integers to its equivalent UTF-8 span representation that is encoded with lowercase hex characters.

TryToHexStringLower(ReadOnlySpan<Byte>, Span<Char>, Int32)

Converts a span of 8-bit unsigned integers to its equivalent span representation that is encoded with lowercase hex characters.

TryToHexStringLower(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Converts a span of 8-bit unsigned integers to its equivalent UTF-8 span representation that is encoded with lowercase hex characters.

public:
 static bool TryToHexStringLower(ReadOnlySpan<System::Byte> source, Span<System::Byte> utf8Destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<byte> utf8Destination, out int bytesWritten);
static member TryToHexStringLower : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryToHexStringLower (source As ReadOnlySpan(Of Byte), utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parameters

source
ReadOnlySpan<Byte>

A span of 8-bit unsigned integers.

utf8Destination
Span<Byte>

The UTF-8 span representation in hex of the elements in source.

bytesWritten
Int32

When this method returns, contains the number of bytes that were written in utf8Destination.

Returns

true if the conversion was successful; otherwise, false.

Applies to

TryToHexStringLower(ReadOnlySpan<Byte>, Span<Char>, Int32)

Source:
Convert.cs
Source:
Convert.cs

Converts a span of 8-bit unsigned integers to its equivalent span representation that is encoded with lowercase hex characters.

public:
 static bool TryToHexStringLower(ReadOnlySpan<System::Byte> source, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten);
static member TryToHexStringLower : ReadOnlySpan<byte> * Span<char> * int -> bool
Public Shared Function TryToHexStringLower (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.

destination
Span<Char>

The span representation in hex of the elements in source.

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