diff options
Diffstat (limited to 'MediaBrowser.Common/HexHelper.cs')
| -rw-r--r-- | MediaBrowser.Common/HexHelper.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/MediaBrowser.Common/HexHelper.cs b/MediaBrowser.Common/HexHelper.cs deleted file mode 100644 index 5587c03fd..000000000 --- a/MediaBrowser.Common/HexHelper.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Globalization; - -namespace MediaBrowser.Common -{ - public static class HexHelper - { - public static byte[] FromHexString(string str) - { - byte[] bytes = new byte[str.Length / 2]; - for (int i = 0; i < str.Length; i += 2) - { - bytes[i / 2] = byte.Parse(str.Substring(i, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture); - } - - return bytes; - } - - public static string ToHexString(byte[] bytes) - => BitConverter.ToString(bytes).Replace("-", ""); - } -} |
