Show / Hide Table of Contents

Class ByteStorageCapacity

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

Inheritance
Object
MultipleTable
StorageCapacity
ByteStorageCapacity
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 ByteStorageCapacity : StorageCapacity, IEquatable<IUnit>

Methods

| Improve this Doc View Source

FromBits(Double, Action<StorageCapacityOptions>)

Creates a new instance of ByteStorageCapacity initialized with bits.

Declaration
public static ByteStorageCapacity FromBits(double bits, Action<StorageCapacityOptions> setup = null)
Parameters
Type Name Description
Double bits

The Double to convert.

Action<StorageCapacityOptions> setup

The StorageCapacityOptions which may be configured.

Returns
Type Description
ByteStorageCapacity

A BitStorageCapacity that is initialized with bits / BitsPerByte.

| Improve this Doc View Source

FromBytes(Double, Action<StorageCapacityOptions>)

Creates a new instance of ByteStorageCapacity initialized with bytes.

Declaration
public static ByteStorageCapacity FromBytes(double bytes, Action<StorageCapacityOptions> setup = null)
Parameters
Type Name Description
Double bytes

The Double to set the amount of byte for this table.

Action<StorageCapacityOptions> setup

The StorageCapacityOptions which may be configured.

Returns
Type Description
ByteStorageCapacity

A BitStorageCapacity that is equivalent to bytes.

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