HexFormat.ParseHex 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.
Overloads
ParseHex(String, Int32, Int32) |
Returns a byte array containing hexadecimal values parsed from a range of the string. |
ParseHex(Char[], Int32, Int32) |
Returns a byte array containing hexadecimal values parsed from a range of the character array. |
ParseHex(String) |
Returns a byte array containing hexadecimal values parsed from the string. |
ParseHex(ICharSequence) |
Returns a byte array containing hexadecimal values parsed from the string. |
ParseHex(ICharSequence, Int32, Int32) |
Returns a byte array containing hexadecimal values parsed from a range of the string. |
ParseHex(String, Int32, Int32)
Returns a byte array containing hexadecimal values parsed from a range of the string.
public byte[]? ParseHex (string? string, int fromIndex, int toIndex);
member this.ParseHex : string * int * int -> byte[]
Parameters
- string
- String
a string range containing hexadecimal digits, delimiters, prefix, and suffix.
- fromIndex
- Int32
the initial index of the range, inclusive
- toIndex
- Int32
the final index of the range, exclusive.
Returns
a byte array with the values parsed from the string range
Remarks
Returns a byte array containing hexadecimal values parsed from a range of the string.
Each byte value is parsed from the prefix, two case insensitive hexadecimal characters, and the suffix. A delimiter follows each formatted value, except the last. The delimiters, prefixes, and suffixes strings must be present; they may be empty strings. A valid string consists only of the above format.
Java documentation for java.util.HexFormat.parseHex(java.lang.CharSequence, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParseHex(Char[], Int32, Int32)
Returns a byte array containing hexadecimal values parsed from a range of the character array.
[Android.Runtime.Register("parseHex", "([CII)[B", "", ApiSince=34)]
public byte[]? ParseHex (char[]? chars, int fromIndex, int toIndex);
[<Android.Runtime.Register("parseHex", "([CII)[B", "", ApiSince=34)>]
member this.ParseHex : char[] * int * int -> byte[]
Parameters
- chars
- Char[]
a character array range containing an even number of hexadecimal digits, delimiters, prefix, and suffix.
- fromIndex
- Int32
the initial index of the range, inclusive
- toIndex
- Int32
the final index of the range, exclusive.
Returns
a byte array with the values parsed from the character array range
- Attributes
Remarks
Returns a byte array containing hexadecimal values parsed from a range of the character array.
Each byte value is parsed from the prefix, two case insensitive hexadecimal characters, and the suffix. A delimiter follows each formatted value, except the last. The delimiters, prefixes, and suffixes strings must be present; they may be empty strings. A valid character array range consists only of the above format.
Java documentation for java.util.HexFormat.parseHex(char[], int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParseHex(String)
Returns a byte array containing hexadecimal values parsed from the string.
public byte[]? ParseHex (string? string);
member this.ParseHex : string -> byte[]
Parameters
- string
- String
a string containing the byte values with prefix, hexadecimal digits, suffix, and delimiters
Returns
a byte array with the values parsed from the string
Remarks
Returns a byte array containing hexadecimal values parsed from the string.
Each byte value is parsed from the prefix, two case insensitive hexadecimal characters, and the suffix. A delimiter follows each formatted value, except the last. The delimiters, prefixes, and suffixes strings must be present; they may be empty strings. A valid string consists only of the above format.
Java documentation for java.util.HexFormat.parseHex(java.lang.CharSequence)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParseHex(ICharSequence)
Returns a byte array containing hexadecimal values parsed from the string.
[Android.Runtime.Register("parseHex", "(Ljava/lang/CharSequence;)[B", "", ApiSince=34)]
public byte[]? ParseHex (Java.Lang.ICharSequence? string);
[<Android.Runtime.Register("parseHex", "(Ljava/lang/CharSequence;)[B", "", ApiSince=34)>]
member this.ParseHex : Java.Lang.ICharSequence -> byte[]
Parameters
- string
- ICharSequence
a string containing the byte values with prefix, hexadecimal digits, suffix, and delimiters
Returns
a byte array with the values parsed from the string
- Attributes
Remarks
Returns a byte array containing hexadecimal values parsed from the string.
Each byte value is parsed from the prefix, two case insensitive hexadecimal characters, and the suffix. A delimiter follows each formatted value, except the last. The delimiters, prefixes, and suffixes strings must be present; they may be empty strings. A valid string consists only of the above format.
Java documentation for java.util.HexFormat.parseHex(java.lang.CharSequence)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParseHex(ICharSequence, Int32, Int32)
Returns a byte array containing hexadecimal values parsed from a range of the string.
[Android.Runtime.Register("parseHex", "(Ljava/lang/CharSequence;II)[B", "", ApiSince=34)]
public byte[]? ParseHex (Java.Lang.ICharSequence? string, int fromIndex, int toIndex);
[<Android.Runtime.Register("parseHex", "(Ljava/lang/CharSequence;II)[B", "", ApiSince=34)>]
member this.ParseHex : Java.Lang.ICharSequence * int * int -> byte[]
Parameters
- string
- ICharSequence
a string range containing hexadecimal digits, delimiters, prefix, and suffix.
- fromIndex
- Int32
the initial index of the range, inclusive
- toIndex
- Int32
the final index of the range, exclusive.
Returns
a byte array with the values parsed from the string range
- Attributes
Remarks
Returns a byte array containing hexadecimal values parsed from a range of the string.
Each byte value is parsed from the prefix, two case insensitive hexadecimal characters, and the suffix. A delimiter follows each formatted value, except the last. The delimiters, prefixes, and suffixes strings must be present; they may be empty strings. A valid string consists only of the above format.
Java documentation for java.util.HexFormat.parseHex(java.lang.CharSequence, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.