Table of Contents

Struct SizeValue

Namespace
BenchmarkDotNet.Columns
Assembly
BenchmarkDotNet.dll
public struct SizeValue
Inherited Members

Constructors

SizeValue(long)

public SizeValue(long bytes)

Parameters

bytes long

SizeValue(long, SizeUnit)

public SizeValue(long bytes, SizeUnit unit)

Parameters

bytes long
unit SizeUnit

Fields

B

public static readonly SizeValue B

Field Value

SizeValue

GB

public static readonly SizeValue GB

Field Value

SizeValue

KB

public static readonly SizeValue KB

Field Value

SizeValue

MB

public static readonly SizeValue MB

Field Value

SizeValue

TB

public static readonly SizeValue TB

Field Value

SizeValue

Properties

Bytes

public readonly long Bytes { get; }

Property Value

long

Methods

FromBytes(long)

public static SizeValue FromBytes(long value)

Parameters

value long

Returns

SizeValue

FromGigabytes(long)

public static SizeValue FromGigabytes(long value)

Parameters

value long

Returns

SizeValue

FromKilobytes(long)

public static SizeValue FromKilobytes(long value)

Parameters

value long

Returns

SizeValue

FromMegabytes(long)

public static SizeValue FromMegabytes(long value)

Parameters

value long

Returns

SizeValue

FromTerabytes(long)

public static SizeValue FromTerabytes(long value)

Parameters

value long

Returns

SizeValue

ToString(SizeUnit?, CultureInfo?, string?, UnitPresentation?)

public string ToString(SizeUnit? sizeUnit, CultureInfo? cultureInfo, string? format = "0.##", UnitPresentation? unitPresentation = null)

Parameters

sizeUnit SizeUnit
cultureInfo CultureInfo
format string
unitPresentation UnitPresentation

Returns

string

ToString(CultureInfo?, string?, UnitPresentation?)

public string ToString(CultureInfo? cultureInfo, string? format = "0.##", UnitPresentation? unitPresentation = null)

Parameters

cultureInfo CultureInfo
format string
unitPresentation UnitPresentation

Returns

string

Operators

operator *(SizeValue, long)

public static SizeValue operator *(SizeValue value, long k)

Parameters

value SizeValue
k long

Returns

SizeValue

operator *(long, SizeValue)

public static SizeValue operator *(long k, SizeValue value)

Parameters

k long
value SizeValue

Returns

SizeValue