This commit is contained in:
Timothy Baldridge 2020-08-03 20:42:19 -06:00
parent c782b63c6c
commit 81b819009d

View File

@ -103,6 +103,16 @@ namespace Wabbajack.Common
{
return BitConverter.GetBytes(_code);
}
public static Hash Interpret(string input)
{
return input.Length switch
{
16 => FromHex(input),
12 when input.EndsWith('=') => FromBase64(input),
_ => FromLong(long.Parse(input))
};
}
}
public static partial class Utils