Exemplo n.º 1
0
 public static string ToHexString(this byte[] bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes, hexPrefix: hexPrefix));
 }
Exemplo n.º 2
0
 public static string ToHexString(this IEnumerable <byte> bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes.ToArray(), hexPrefix: hexPrefix));
 }
Exemplo n.º 3
0
 public static string ToHexString(this Memory <byte> bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes.Span, hexPrefix: hexPrefix));
 }
Exemplo n.º 4
0
 public static string ToHexString(this ReadOnlySpan <byte> bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes, hexPrefix: hexPrefix));
 }
Exemplo n.º 5
0
 public static ReadOnlySpan <byte> HexToReadOnlySpan(this string hexString)
 {
     return(HexUtility.HexToBytes(hexString));
 }
Exemplo n.º 6
0
 public static byte[] HexToBytes(this string hexString)
 {
     return(HexUtility.HexToBytes(hexString));
 }
Exemplo n.º 7
0
 public static ReadOnlyMemory <byte> HexToReadOnlyMemory(this string hexString)
 {
     return(HexUtility.HexToMemory(hexString));
 }