Click or drag to resize

DownloadSpeed Structure

Represents a download speed value.

Namespace:  UMod.Streaming
Assembly:  UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public struct DownloadSpeed : IEquatable<DownloadSpeed>

The DownloadSpeed type exposes the following members.

Properties
  NameDescription
Public propertySpeed
The current speed represented by this instance. The measurment unit depends on Unit
Public propertyUnit
The current unit of measurement used by this download speed.
Top
Methods
  NameDescription
Public methodEquals(Object)
Overriden equals.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(DownloadSpeed)
Additional equals.
Public methodStatic memberFromBytesPerSecond
Convert the specified number of bytes to a DownloadSpeed representing the transfer rate per second.
Public methodGetHashCode
Overriden hash code.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberMeasure
Get the DownloadSpeed for the downloaded data based on the last measure time.
Public methodStatic memberMeasureAverage
Get the average DownloadSpeed for the downloaded data based on the last measure time.
Public methodStatic memberStartMeasuring
Resets all measue data so that new measures can be taken from the current time.
Public methodToString
Get the current downlaod speed as a string value.
(Overrides ValueTypeToString.)
Public methodToString(Boolean)
Get the current downlod speed as a string value.
Public methodStatic memberUnitString
Get a string value representing the current units used by the download speed. See also DownloadUnit
Top
Fields
  NameDescription
Public fieldStatic memberzero
Represents a donwload speed of 0 Bytes per second.
Top
See Also