Table of Contents

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
Object
ByteStorageCapacity
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 Double

The 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 Double

The 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.

See Also