Exemplo n.º 1
0
 /// <summary>
 ///     Converts a hex string to a UInt64
 /// </summary>
 /// <param name="hexString">The hexadecimal string.</param>
 /// <returns>System.UInt64.</returns>
 public static ulong ToULong(this string hexString)
 {
     return(ByteArrayBuilder.StringToByteArray(hexString).ToULong());
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Converts a hex string to a UInt16
 /// </summary>
 /// <param name="hexString">The hexadecimal string.</param>
 /// <returns>System.UInt16.</returns>
 /// <example>"cdab" =&gt; 0xabcd</example>
 public static ushort ToUShort(this string hexString)
 {
     return(ByteArrayBuilder.StringToByteArray(hexString).ToUShort());
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Converts a hex string to a UInt64
 /// </summary>
 /// <param name="hexString">The hexadecimal string.</param>
 /// <returns>System.UInt32.</returns>
 public static uint ToUInt(this string hexString)
 {
     return(ByteArrayBuilder.StringToByteArray(hexString).ToUInt());
 }