You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/NzbDrone.Common/Extensions/Base64Extensions.cs

18 lines
372 B

using System;
namespace NzbDrone.Common.Extensions
{
public static class Base64Extensions
{
public static string ToBase64(this byte[] bytes)
{
return Convert.ToBase64String(bytes);
}
public static string ToBase64(this long input)
{
return BitConverter.GetBytes(input).ToBase64();
}
}
}