Class BitStorageCapacity
Represent a table of both binary and metric prefixes for a BitUnit. This class cannot be inherited from.
Implements
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public sealed class BitStorageCapacity : StorageCapacity, IEquatable<IUnit>
Methods
| Improve this Doc View SourceFromBits(Double, Action<StorageCapacityOptions>)
Creates a new instance of BitStorageCapacity initialized with bits
.
Declaration
public static BitStorageCapacity FromBits(double bits, Action<StorageCapacityOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
Double | bits | The Double to set the amount of bit for this table. |
Action<StorageCapacityOptions> | setup | The StorageCapacityOptions which may be configured. |
Returns
Type | Description |
---|---|
BitStorageCapacity | A BitStorageCapacity that is equivalent to |
FromBytes(Double, Action<StorageCapacityOptions>)
Creates a new instance of BitStorageCapacity initialized with bytes
.
Declaration
public static BitStorageCapacity FromBytes(double bytes, Action<StorageCapacityOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
Double | bytes | The Double to convert. |
Action<StorageCapacityOptions> | setup | The StorageCapacityOptions which may be configured. |
Returns
Type | Description |
---|---|
BitStorageCapacity | A BitStorageCapacity that is initialized with |