NZBVortex Download Client

New: NZBVortex Download Client
Closes #360
This commit is contained in:
Mark McDowall
2015-10-13 19:01:47 -07:00
parent dda0d3259f
commit 7c382c0e0c
29 changed files with 1223 additions and 0 deletions

View File

@@ -92,5 +92,13 @@ namespace NzbDrone.Common.Extensions
return "\"" + text + "\"";
}
public static byte[] HexToByteArray(this string input)
{
return Enumerable.Range(0, input.Length)
.Where(x => x%2 == 0)
.Select(x => Convert.ToByte(input.Substring(x, 2), 16))
.ToArray();
}
}
}