Struct BitRate
A type for handling bit rates.
Assembly: Emby.Media.Model.dll
public struct BitRate : IComparable<BitRate>, IEquatable<BitRate>
Constructors
Declaration
public BitRate(long rate)
Parameters
Type |
Name |
Description |
System.Int64 |
rate |
|
Properties
Declaration
public readonly long bps { get; }
Property Value
Type |
Description |
System.Int64 |
|
Declaration
public readonly double kbps { get; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public readonly double Mbps { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Declaration
public int CompareTo(BitRate other)
Parameters
Type |
Name |
Description |
BitRate |
other |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public bool Equals(BitRate other)
Parameters
Type |
Name |
Description |
BitRate |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Declaration
public static BitRate Fromkbps(double rate)
Parameters
Type |
Name |
Description |
System.Double |
rate |
|
Returns
Declaration
public static BitRate Fromkbps(long rate)
Parameters
Type |
Name |
Description |
System.Int64 |
rate |
|
Returns
Declaration
public static BitRate FromMbps(double rate)
Parameters
Type |
Name |
Description |
System.Double |
rate |
|
Returns
Declaration
public static BitRate FromMbps(long rate)
Parameters
Type |
Name |
Description |
System.Int64 |
rate |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Declaration
public string TobpsString()
Returns
Type |
Description |
System.String |
|
Declaration
public string TokbpsString(string format = "N1")
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string TokMpsString(string format = "N1")
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
Type |
Description |
System.String |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Declaration
public static bool operator ==(BitRate left, BitRate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator>(BitRate left, BitRate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator >=(BitRate left, BitRate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static implicit operator long (BitRate rate)
Parameters
Returns
Type |
Description |
System.Int64 |
|
Declaration
public static implicit operator BitRate(long rate)
Parameters
Type |
Name |
Description |
System.Int64 |
rate |
|
Returns
Declaration
public static bool operator !=(BitRate left, BitRate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator <(BitRate left, BitRate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator <=(BitRate left, BitRate right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IComparable<T>
System.IEquatable<T>
Extension Methods
See Also
System.IComparable
System.IEquatable<T>