Struct ForceNetworkSerializeByMemcpy\<T\>
This is a wrapper that adds INetworkSerializeByMemcpy
support to
existing structs that the developer doesn't have the ability to modify
(for example, external structs like Guid
).
#
ImplementsINetworkSerializeByMemcpy
System.IEquatable\<ForceNetworkSerializeByMemcpy\<T>>
#
Inherited MembersSystem.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
#
Namespace: Unity.Netcode#
Assembly: MLAPI.dll#
Syntax#
Type ParametersName | Description |
---|---|
T |
#
Constructors#
ForceNetworkSerializeByMemcpy(T)The default constructor for ForceNetworkSerializeByMemcpy\<T>
#
Declaration#
ParametersType | Name | Description |
---|---|---|
T | value | sets the initial value of type T |
#
Fields#
ValueThe wrapped value
#
Declaration#
Field ValueType | Description |
---|---|
T |
#
Methods#
Equals(Object)Check if this value is equal to a boxed object value
#
Declaration#
ParametersType | Name | Description |
---|---|---|
System.Object | obj | The boxed value to check against |
#
ReturnsType | Description |
---|---|
System.Boolean | true if equal |
#
OverridesSystem.ValueType.Equals(System.Object)
#
Equals(ForceNetworkSerializeByMemcpy\<T>)Check if wrapped values are equal
#
Declaration#
ParametersType | Name | Description |
---|---|---|
ForceNetworkSerializeByMemcpy\<T> | other | Other wrapper |
#
ReturnsType | Description |
---|---|
System.Boolean | true if equal |
#
GetHashCode()Obtains the wrapped value's hash code
#
Declaration#
ReturnsType | Description |
---|---|
System.Int32 | Wrapped value's hash code |
#
OverridesSystem.ValueType.GetHashCode()
#
Operators#
Implicit(T to ForceNetworkSerializeByMemcpy\<T>)Convert implicitly from a T value to a ForceNetworkSerializeByMemcpy wrapper
#
Declaration#
ParametersType | Name | Description |
---|---|---|
T | underlyingValue | the value |
#
ReturnsType | Description |
---|---|
ForceNetworkSerializeByMemcpy\<T> | a new wrapper |
#
Implicit(ForceNetworkSerializeByMemcpy\<T> to T)Convert implicitly from the ForceNetworkSerializeByMemcpy wrapper to the underlying value
#
Declaration#
ParametersType | Name | Description |
---|---|---|
ForceNetworkSerializeByMemcpy\<T> | container | The wrapper |
#
ReturnsType | Description |
---|---|
T | The underlying value |
#
ImplementsINetworkSerializeByMemcpy
System.IEquatable\<T>