Table of Contents

Class BitStorageCapacity

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Represent a table of both binary and metric prefixes for a BitUnit. This class cannot be inherited from.

public sealed class BitStorageCapacity : StorageCapacity, IEquatable<IUnit>
Inheritance
Object
BitStorageCapacity
Implements
IEquatable<IUnit>
Inherited Members

Methods

FromBits(Double, Action<StorageCapacityOptions>)

Creates a new instance of BitStorageCapacity initialized with bits.

public static BitStorageCapacity FromBits(double bits, Action<StorageCapacityOptions> setup = null)

Parameters

bits Double

The System.Double to set the amount of bit for this table.

setup Action<StorageCapacityOptions>

The StorageCapacityOptions which may be configured.

Returns

BitStorageCapacity

A BitStorageCapacity that is equivalent to bits.

FromBytes(Double, Action<StorageCapacityOptions>)

Creates a new instance of BitStorageCapacity initialized with bytes.

public static BitStorageCapacity FromBytes(double bytes, Action<StorageCapacityOptions> setup = null)

Parameters

bytes Double

The System.Double to convert.

setup Action<StorageCapacityOptions>

The StorageCapacityOptions which may be configured.

Returns

BitStorageCapacity

A BitStorageCapacity that is initialized with bytes * BitsPerByte (ceiling).

See Also