A serializable equivalent of Nullable<FP>. More...
Public Member Functions | |
override int | GetHashCode () |
Computes the hash code for the current instance of the NullableFP struct. More... | |
FP | ValueOrDefault (FP v) |
If HasValue is true , returns Value. Otherwise returns v . More... | |
Static Public Member Functions | |
static implicit | operator NullableFP (FP v) |
Converts v to NullableFP. More... | |
static void | Serialize (NullableFP *ptr, IDeterministicFrameSerializer serializer) |
Serializes a NullableFP object using the given serializer. More... | |
Public Attributes | |
long | _hasValue |
If 1, then _value is valid. More... | |
FP | _value |
The value. More... | |
Static Public Attributes | |
const int | SIZE = sizeof(long) + FP.SIZE |
Size of the struct in bytes. More... | |
Properties | |
Boolean | HasValue [get] |
Returns true if this nullable has a value. More... | |
FP | Value [get] |
Returns current value. More... | |
A serializable equivalent of Nullable<FP>.
|
inlinestatic |
Converts v to NullableFP.
v |
|
inlinestatic |
Serializes a NullableFP object using the given serializer.
ptr | A pointer to the NullableFP object to be serialized. |
serializer | The serializer object used for serialization. |
|
inline |
Computes the hash code for the current instance of the NullableFP struct.
|
static |
Size of the struct in bytes.
long Photon.Deterministic.NullableFP._hasValue |
If 1, then _value is valid.
FP Photon.Deterministic.NullableFP._value |
The value.
|
get |
Returns true
if this nullable has a value.