FruityFoundation/Base/ByteHelper.cs

13 lines
313 B
C#
Raw Normal View History

2022-09-23 21:08:13 -04:00
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;
}