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).
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public struct ForceNetworkSerializeByMemcpy<T> : INetworkSerializeByMemcpy, IEquatable<ForceNetworkSerializeByMemcpy<T>> where T : unmanaged, IEquatable<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Name | Description |
|---|---|
| ForceNetworkSerializeByMemcpy(T) | The default constructor for ForceNetworkSerializeByMemcpy<T> |
Fields
| Name | Description |
|---|---|
| Value | The wrapped value |
Methods
| Name | Description |
|---|---|
| Equals(object) | Check if this value is equal to a boxed object value |
| Equals(ForceNetworkSerializeByMemcpy<T>) | Check if wrapped values are equal |
| GetHashCode() | Obtains the wrapped value's hash code |
Operators
| Name | Description |
|---|---|
| implicit operator T(ForceNetworkSerializeByMemcpy<T>) | Convert implicitly from the ForceNetworkSerializeByMemcpy wrapper to the underlying value |
| implicit operator ForceNetworkSerializeByMemcpy<T>(T) | Convert implicitly from a T value to a ForceNetworkSerializeByMemcpy wrapper |