Converts the span, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer array.
FromHexString(String)Converts the specified string, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer array.
FromHexString(ReadOnlySpan<Char>, Span<Byte>, Int32, Int32)Converts the span of chars, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer span.
FromHexString(String, Span<Byte>, Int32, Int32)Converts the string, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer span.
FromHexString(ReadOnlySpan<Char>)Converts the span, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer array.
public:
static cli::array <System::Byte> ^ FromHexString(ReadOnlySpan<char> chars);
public static byte[] FromHexString(ReadOnlySpan<char> chars);
static member FromHexString : ReadOnlySpan<char> -> byte[]
Public Shared Function FromHexString (chars As ReadOnlySpan(Of Char)) As Byte()
Parameters Returns
An array of 8-bit unsigned integers that is equivalent to chars
.
The length of chars
, is not zero or a multiple of 2.
The format of chars
is invalid. chars
contains a non-hex character.
Converts the specified string, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer array.
public:
static cli::array <System::Byte> ^ FromHexString(System::String ^ s);
public static byte[] FromHexString(string s);
static member FromHexString : string -> byte[]
Public Shared Function FromHexString (s As String) As Byte()
Parameters
The string to convert.
ReturnsAn array of 8-bit unsigned integers that is equivalent to s
.
The length of s
, is not zero or a multiple of 2.
The format of s
is invalid. s
contains a non-hex character.
Converts the span of chars, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer span.
public:
static System::Buffers::OperationStatus FromHexString(ReadOnlySpan<char> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % charsConsumed, [Runtime::InteropServices::Out] int % bytesWritten);
public static System.Buffers.OperationStatus FromHexString(ReadOnlySpan<char> source, Span<byte> destination, out int charsConsumed, out int bytesWritten);
static member FromHexString : ReadOnlySpan<char> * Span<byte> * int * int -> System.Buffers.OperationStatus
Public Shared Function FromHexString (source As ReadOnlySpan(Of Char), destination As Span(Of Byte), ByRef charsConsumed As Integer, ByRef bytesWritten As Integer) As OperationStatus
Parameters
The span in which to write the converted 8-bit unsigned integers. When this method returns value different than Done, either the span remains unmodified or contains an incomplete conversion of source
, up to the last valid character.
When this method returns, contains the number of characters that were consumed from source
.
When this method returns, contains the number of bytes that were written to destination
.
An OperationStatus describing the result of the operation.
FromHexString(String, Span<Byte>, Int32, Int32)Converts the string, which encodes binary data as hex characters, to an equivalent 8-bit unsigned integer span.
public:
static System::Buffers::OperationStatus FromHexString(System::String ^ source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % charsConsumed, [Runtime::InteropServices::Out] int % bytesWritten);
public static System.Buffers.OperationStatus FromHexString(string source, Span<byte> destination, out int charsConsumed, out int bytesWritten);
static member FromHexString : string * Span<byte> * int * int -> System.Buffers.OperationStatus
Public Shared Function FromHexString (source As String, destination As Span(Of Byte), ByRef charsConsumed As Integer, ByRef bytesWritten As Integer) As OperationStatus
Parameters
The string to convert.
The span in which to write the converted 8-bit unsigned integers. When this method returns value different than Done, either the span remains unmodified or contains an incomplete conversion of source
, up to the last valid character.
When this method returns, contains the number of characters that were consumed from source
.
When this method returns, contains the number of bytes that were written to destination
.
An OperationStatus describing the result of the operation.
ExceptionsPassed string source
is null
.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4