Show / Hide Table of Contents

Class BitStorageCapacity

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

Inheritance
Object
MultipleTable
StorageCapacity
BitStorageCapacity
Implements
IEquatable<IUnit>
Inherited Members
StorageCapacity.Kibi
StorageCapacity.Mebi
StorageCapacity.Gibi
StorageCapacity.Tebi
StorageCapacity.Pebi
StorageCapacity.Kilo
StorageCapacity.Mega
StorageCapacity.Giga
StorageCapacity.Tera
StorageCapacity.Peta
StorageCapacity.ToString()
StorageCapacity.ToAggregateString(Boolean, Boolean, Boolean)
MultipleTable.Unit
MultipleTable.Equals(IUnit)
MultipleTable.Equals(Object)
MultipleTable.GetHashCode()
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public sealed class BitStorageCapacity : StorageCapacity, IEquatable<IUnit>

Methods

| Improve this Doc View Source

FromBits(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 bits.

| Improve this Doc View Source

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 bytes * BitsPerByte (ceiling).

Implements

System.IEquatable<T>

See Also

StorageCapacity
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX