Struct UnmanagedNetworkSerializableType
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public struct UnmanagedNetworkSerializableType : INetworkSerializable, IEquatable<UnmanagedNetworkSerializableType>
Fields
InMemoryValue
Declaration
public int InMemoryValue
Field Value
Type | Description |
---|---|
int |
Int
Declaration
public int Int
Field Value
Type | Description |
---|---|
int |
Str
Declaration
public FixedString32Bytes Str
Field Value
Type | Description |
---|---|
Fixed |
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
Equals(UnmanagedNetworkSerializableType)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(UnmanagedNetworkSerializableType other)
Parameters
Type | Name | Description |
---|---|---|
Unmanaged |
other | An object to compare with this object. |
Returns
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
NetworkSerialize<T>(BufferSerializer<T>)
Provides bi-directional serialization to read and write the desired data to serialize this type.
Declaration
public void NetworkSerialize<T>(BufferSerializer<T> serializer) where T : IReaderWriter
Parameters
Type | Name | Description |
---|---|---|
Buffer |
serializer | The serializer to use to read and write the data. |
Type Parameters
Name | Description |
---|---|
T | Either BufferSerializerReader or BufferSerializerWriter, depending whether the serializer is in read mode or write mode. |