feat: add ByteHelper

This commit is contained in:
Kyle Ratti 2022-09-23 21:08:13 -04:00
parent f3f511ad36
commit c39fdd86ec
No known key found for this signature in database
GPG Key ID: 321BA8EB09CD93F4

13
Base/ByteHelper.cs Normal file
View File

@ -0,0 +1,13 @@
namespace FruityFoundation.Base;
public static class ByteHelper
{
public static long FromKilobytes(long kilobytes) =>
kilobytes * 1024;
public static long FromMegabytes(long megabytes) =>
megabytes * 1024 * 1024;
public static long FromGigabytes(long gigabytes) =>
gigabytes * 1024 * 1024 * 1024;
}