Class ByteStorageCapacity
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Represent a table of both binary and metric prefixes for a ByteUnit. This class cannot be inherited from.
public sealed class ByteStorageCapacity : StorageCapacity, IEquatable<IUnit>
- Inheritance
-
ObjectByteStorageCapacity
- Implements
-
IEquatable<IUnit>
- Inherited Members
Methods
FromBits(Double, Action<StorageCapacityOptions>)
Creates a new instance of ByteStorageCapacity initialized with bits
.
public static ByteStorageCapacity FromBits(double bits, Action<StorageCapacityOptions> setup = null)
Parameters
bits
DoubleThe System.Double to convert.
setup
Action<StorageCapacityOptions>The StorageCapacityOptions which may be configured.
Returns
- ByteStorageCapacity
A BitStorageCapacity that is initialized with
bits
/ BitsPerByte.
FromBytes(Double, Action<StorageCapacityOptions>)
Creates a new instance of ByteStorageCapacity initialized with bytes
.
public static ByteStorageCapacity FromBytes(double bytes, Action<StorageCapacityOptions> setup = null)
Parameters
bytes
DoubleThe System.Double to set the amount of byte for this table.
setup
Action<StorageCapacityOptions>The StorageCapacityOptions which may be configured.
Returns
- ByteStorageCapacity
A BitStorageCapacity that is equivalent to
bytes
.