Struct SteamNetworkingMicroseconds
Wraps the Steamworks SteamNetworkingMicroseconds handle, a long.
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
[Serializable]
public struct SteamNetworkingMicroseconds : IEquatable<SteamNetworkingMicroseconds>, IComparable<SteamNetworkingMicroseconds>
Constructors
SteamNetworkingMicroseconds(long)
Initializes a new SteamNetworkingMicroseconds from its underlying value.
Declaration
public SteamNetworkingMicroseconds(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The underlying |
Fields
m_SteamNetworkingMicroseconds
The underlying long value.
Declaration
public long m_SteamNetworkingMicroseconds
Field Value
| Type | Description |
|---|---|
| long |
Methods
CompareTo(SteamNetworkingMicroseconds)
Orders this value against other by their underlying values.
Declaration
public int CompareTo(SteamNetworkingMicroseconds other)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingMicroseconds | other | The value to compare against. |
Returns
| Type | Description |
|---|---|
| int | Negative, zero or positive as this value sorts before, with or after |
Equals(object)
Returns true when other is a SteamNetworkingMicroseconds with the same value.
Declaration
public override bool Equals(object other)
Parameters
| Type | Name | Description |
|---|---|---|
| object | other | The object to compare against. |
Returns
| Type | Description |
|---|---|
| bool | true when |
Overrides
Equals(SteamNetworkingMicroseconds)
Returns true when this value equals other.
Declaration
public bool Equals(SteamNetworkingMicroseconds other)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingMicroseconds | other | The value to compare against. |
Returns
| Type | Description |
|---|---|
| bool | true when both hold the same underlying value. |
GetHashCode()
Returns the hash code of the underlying value.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The underlying value's hash code. |
Overrides
ToString()
Returns the underlying value as a string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The underlying value formatted by its own |
Overrides
Operators
operator ==(SteamNetworkingMicroseconds, SteamNetworkingMicroseconds)
Returns true when both operands hold the same value.
Declaration
public static bool operator ==(SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingMicroseconds | x | The first value to compare. |
| SteamNetworkingMicroseconds | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| bool | true when the two hold the same underlying value. |
explicit operator SteamNetworkingMicroseconds(long)
Converts a long to a SteamNetworkingMicroseconds. Explicit, so two handle types cannot convert into each other through the type they share.
Declaration
public static explicit operator SteamNetworkingMicroseconds(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The underlying |
Returns
| Type | Description |
|---|---|
| SteamNetworkingMicroseconds | A |
explicit operator long(SteamNetworkingMicroseconds)
Converts a SteamNetworkingMicroseconds to its underlying long.
Declaration
public static explicit operator long(SteamNetworkingMicroseconds that)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingMicroseconds | that | The handle to unwrap. |
Returns
| Type | Description |
|---|---|
| long | The underlying |
operator !=(SteamNetworkingMicroseconds, SteamNetworkingMicroseconds)
Returns true when the operands hold different values.
Declaration
public static bool operator !=(SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingMicroseconds | x | The first value to compare. |
| SteamNetworkingMicroseconds | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| bool | true when the two hold different underlying values. |