Skip to main content

Unity.Netcode.ForceNetworkSerializeByMemcpy

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).

Implements#

INetworkSerializeByMemcpy

System.IEquatable\<ForceNetworkSerializeByMemcpy\<T>>

Inherited Members#

System.ValueType.ToString()

System.Object.Equals(System.Object, System.Object)

System.Object.GetType()

System.Object.ReferenceEquals(System.Object, System.Object)

Syntax#
public struct ForceNetworkSerializeByMemcpy<T> : INetworkSerializeByMemcpy, IEquatable<ForceNetworkSerializeByMemcpy<T>> where T : struct, IEquatable<T>
Type Parameters#
NameDescription
T

Constructors#

ForceNetworkSerializeByMemcpy(T)#

Declaration#
public ForceNetworkSerializeByMemcpy(T value)
Parameters#
TypeNameDescription
Tvalue

Fields#

Value#

Declaration#
public T Value
Field Value#
TypeDescription
T

Methods#

Equals(Object)#

Declaration#
public override bool Equals(object obj)
Parameters#
TypeNameDescription
System.Objectobj
Returns#
TypeDescription
System.Boolean
Overrides#

System.ValueType.Equals(System.Object)

Equals(ForceNetworkSerializeByMemcpy\<T>)#

Declaration#
public bool Equals(ForceNetworkSerializeByMemcpy<T> other)
Parameters#
TypeNameDescription
ForceNetworkSerializeByMemcpy\<T>other
Returns#
TypeDescription
System.Boolean

GetHashCode()#

Declaration#
public override int GetHashCode()
Returns#
TypeDescription
System.Int32
Overrides#

System.ValueType.GetHashCode()

Operators#

Implicit(T to ForceNetworkSerializeByMemcpy\<T>)#

Declaration#
public static implicit operator ForceNetworkSerializeByMemcpy<T>(T underlyingValue)
Parameters#
TypeNameDescription
TunderlyingValue
Returns#
TypeDescription
ForceNetworkSerializeByMemcpy\<T>

Implicit(ForceNetworkSerializeByMemcpy\<T> to T)#

Declaration#
public static implicit operator T(ForceNetworkSerializeByMemcpy<T> container)
Parameters#
TypeNameDescription
ForceNetworkSerializeByMemcpy\<T>container
Returns#
TypeDescription
T

Implements#

INetworkSerializeByMemcpy

System.IEquatable\<T>