diff --git a/Base/ByteHelper.cs b/Base/ByteHelper.cs new file mode 100644 index 0000000..a4ef8d4 --- /dev/null +++ b/Base/ByteHelper.cs @@ -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; +} \ No newline at end of file