예제 #1
0
 private static string ToUpperHexString(ReadOnlySpan <byte> ba)
 {
     return(HexConverter.ToString(ba, HexConverter.Casing.Upper));
 }
예제 #2
0
 // Encode a byte array as an array of upper-case hex characters.
 internal static char[] ToHexArrayUpper(this byte[] bytes)
 {
     char[] chars = new char[bytes.Length * 2];
     HexConverter.EncodeToUtf16(bytes, chars);
     return(chars);
 }
예제 #3
0
 public string Format(Oid?oid, byte[] rawData, bool multiLine)
 {
     return(FormatNative(oid, rawData, multiLine) ?? HexConverter.ToString(rawData.AsSpan(), HexConverter.Casing.Upper));
 }
예제 #4
0
 // Encode a byte array as an upper case hex string.
 public static string ToHexStringUpper(this byte[] bytes) =>
 HexConverter.ToString(bytes.AsSpan(), HexConverter.Casing.Upper);