Class Hex
- Namespace
- Aptos
- Assembly
- Aptos.dll
[JsonConverter(typeof(HexConverter))]
public class Hex
- Inheritance
-
Hex
- Inherited Members
Constructors
Hex(byte[])
public Hex(byte[] data)
Parameters
data
byte[]
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
FromHexInput(byte[])
public static Hex FromHexInput(byte[] bytes)
Parameters
bytes
byte[]
Returns
FromHexInput(string)
public static Hex FromHexInput(string input)
Parameters
input
string
Returns
FromHexString(string)
public static Hex FromHexString(string str)
Parameters
str
string
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsValid(string)
public static bool IsValid(string str)
Parameters
str
string
Returns
ToByteArray()
public byte[] ToByteArray()
Returns
- byte[]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToStringWithoutPrefix()
public string ToStringWithoutPrefix()