Relativity.DataExchange.ByteSize
Represents a byte size value.
namespace Relativity.DataExchange
{
internal struct ByteSize : IComparable<ByteSize>, IEquatable<ByteSize>
{
public const long BitsInByte = 8;
public const long BytesInKiloByte = 1024;
public const long BytesInMegaByte = 1048576;
public const long BytesInGigaByte = 1073741824;
public const long BytesInTeraByte = 1099511627776;
public const long BytesInPetaByte = 1125899906842624;
public const string BitSymbol = "b";
public const string ByteSymbol = "B";
public const string KiloByteSymbol = "KB";
public const string MegaByteSymbol = "MB";
public const string GigaByteSymbol = "GB";
public const string TeraByteSymbol = "TB";
public const string PetaByteSymbol = "PB";
public long Bits { get; }
public double Bytes { get; }
public double KiloBytes { get; }
public double MegaBytes { get; }
public double GigaBytes { get; }
public double TeraBytes { get; }
public double PetaBytes { get; }
public string LargestWholeNumberSymbol { get; }
public double LargestWholeNumberValue { get; }
public ByteSize(double byteSize);
public static ByteSize FromBits(long value);
public static ByteSize FromBytes(double value);
public static ByteSize FromKiloBytes(double value);
public static ByteSize FromMegaBytes(double value);
public static ByteSize FromGigaBytes(double value);
public static ByteSize FromTeraBytes(double value);
public static ByteSize FromPetaBytes(double value);
public static ByteSize operator +(ByteSize b1, ByteSize b2);
public static ByteSize operator ++(ByteSize b);
public static ByteSize operator -(ByteSize b);
public static ByteSize operator --(ByteSize b);
public static bool operator ==(ByteSize b1, ByteSize b2);
public static bool operator !=(ByteSize b1, ByteSize b2);
public static bool operator <(ByteSize b1, ByteSize b2);
public static bool operator <=(ByteSize b1, ByteSize b2);
public static bool operator >(ByteSize b1, ByteSize b2);
public static bool operator >=(ByteSize b1, ByteSize b2);
public static bool TryParse(string s, out ByteSize result);
public static ByteSize Parse(string s);
public string ToString(string format);
public bool Equals(ByteSize value);
public int CompareTo(ByteSize other);
}
}