private static string ToUpperHexString(ReadOnlySpan <byte> ba) { return(HexConverter.ToString(ba, HexConverter.Casing.Upper)); }
// 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); }
public string Format(Oid?oid, byte[] rawData, bool multiLine) { return(FormatNative(oid, rawData, multiLine) ?? HexConverter.ToString(rawData.AsSpan(), HexConverter.Casing.Upper)); }
// Encode a byte array as an upper case hex string. public static string ToHexStringUpper(this byte[] bytes) => HexConverter.ToString(bytes.AsSpan(), HexConverter.Casing.Upper);