Пример #1
0
 public static string ToHexString(this IEnumerable <byte> bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes.ToArray(), hexPrefix: hexPrefix));
 }
Пример #2
0
 public static string ToHexString(this Memory <byte> bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes.Span, hexPrefix: hexPrefix));
 }
Пример #3
0
 public static string ToHexString(this byte[] bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes, hexPrefix: hexPrefix));
 }
Пример #4
0
 public static string ToHexString(this ReadOnlySpan <byte> bytes, bool hexPrefix = false)
 {
     return(HexUtility.GetHexFromBytes(bytes, hexPrefix: hexPrefix));
 }