HexFormat.ToHexDigits 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
| ToHexDigits(Int64) |
Returns the sixteen hexadecimal characters for the |
| ToHexDigits(Int64, Int32) |
Returns up to sixteen hexadecimal characters for the |
| ToHexDigits(Object, SByte) |
Appends two hexadecimal characters for the byte value to the |
| ToHexDigits(SByte) |
Returns the two hexadecimal characters for the |
| ToHexDigits(Int32) |
Returns the eight hexadecimal characters for the |
| ToHexDigits(Int16) |
Returns the four hexadecimal characters for the |
| ToHexDigits(Char) |
Returns the four hexadecimal characters for the |
ToHexDigits(Int64)
Returns the sixteen hexadecimal characters for the long value.
[Android.Runtime.Register("toHexDigits", "(J)Ljava/lang/String;", "", ApiSince=34)]
public string? ToHexDigits(long value);
[<Android.Runtime.Register("toHexDigits", "(J)Ljava/lang/String;", "", ApiSince=34)>]
member this.ToHexDigits : int64 -> string
Parameters
- value
- Int64
a long value
Returns
the sixteen hexadecimal characters for the long value
- Attributes
Remarks
Returns the sixteen hexadecimal characters for the long value. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(long).
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
ToHexDigits(Int64, Int32)
Returns up to sixteen hexadecimal characters for the long value.
[Android.Runtime.Register("toHexDigits", "(JI)Ljava/lang/String;", "", ApiSince=34)]
public string? ToHexDigits(long value, int digits);
[<Android.Runtime.Register("toHexDigits", "(JI)Ljava/lang/String;", "", ApiSince=34)>]
member this.ToHexDigits : int64 * int -> string
Parameters
- value
- Int64
a long value
- digits
- Int32
the number of hexadecimal digits to return, 0 to 16
Returns
the hexadecimal characters for the long value
- Attributes
Remarks
Returns up to sixteen hexadecimal characters for the long value. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(long, 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
ToHexDigits(Object, SByte)
Appends two hexadecimal characters for the byte value to the Appendable.
[Android.Runtime.Register("toHexDigits", "(Ljava/lang/Appendable;B)Ljava/lang/Appendable;", "", ApiSince=34)]
[Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.Appendable" })]
public Java.Lang.Object? ToHexDigits(Java.Lang.Object? out, sbyte value);
[<Android.Runtime.Register("toHexDigits", "(Ljava/lang/Appendable;B)Ljava/lang/Appendable;", "", ApiSince=34)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.Appendable" })>]
member this.ToHexDigits : Java.Lang.Object * sbyte -> Java.Lang.Object
Parameters
- out
- Object
an Appendable, non-null
- value
- SByte
a byte value
Returns
the Appendable
- Attributes
Remarks
Appends two hexadecimal characters for the byte value to the Appendable. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The hexadecimal characters are appended in one or more calls to the Appendable methods. The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(A, byte).
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
ToHexDigits(SByte)
Returns the two hexadecimal characters for the byte value.
[Android.Runtime.Register("toHexDigits", "(B)Ljava/lang/String;", "", ApiSince=34)]
public string? ToHexDigits(sbyte value);
[<Android.Runtime.Register("toHexDigits", "(B)Ljava/lang/String;", "", ApiSince=34)>]
member this.ToHexDigits : sbyte -> string
Parameters
- value
- SByte
a byte value
Returns
the two hexadecimal characters for the byte value
- Attributes
Remarks
Returns the two hexadecimal characters for the byte value. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(byte).
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
ToHexDigits(Int32)
Returns the eight hexadecimal characters for the int value.
[Android.Runtime.Register("toHexDigits", "(I)Ljava/lang/String;", "", ApiSince=34)]
public string? ToHexDigits(int value);
[<Android.Runtime.Register("toHexDigits", "(I)Ljava/lang/String;", "", ApiSince=34)>]
member this.ToHexDigits : int -> string
Parameters
- value
- Int32
an int value
Returns
the eight hexadecimal characters for the int value
- Attributes
Remarks
Returns the eight hexadecimal characters for the int value. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(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
ToHexDigits(Int16)
Returns the four hexadecimal characters for the short value.
[Android.Runtime.Register("toHexDigits", "(S)Ljava/lang/String;", "", ApiSince=34)]
public string? ToHexDigits(short value);
[<Android.Runtime.Register("toHexDigits", "(S)Ljava/lang/String;", "", ApiSince=34)>]
member this.ToHexDigits : int16 -> string
Parameters
- value
- Int16
a short value
Returns
the four hexadecimal characters for the short value
- Attributes
Remarks
Returns the four hexadecimal characters for the short value. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(short).
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
ToHexDigits(Char)
Returns the four hexadecimal characters for the char value.
[Android.Runtime.Register("toHexDigits", "(C)Ljava/lang/String;", "", ApiSince=34)]
public string? ToHexDigits(char value);
[<Android.Runtime.Register("toHexDigits", "(C)Ljava/lang/String;", "", ApiSince=34)>]
member this.ToHexDigits : char -> string
Parameters
- value
- Char
a char value
Returns
the four hexadecimal characters for the char value
- Attributes
Remarks
Returns the four hexadecimal characters for the char value. Each nibble (4 bits) from most significant to least significant of the value is formatted as if by #toLowHexDigit(int) toLowHexDigit(nibble). The delimiter, prefix and suffix are not used.
Java documentation for java.util.HexFormat.toHexDigits(char).
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.