Unity.Networking.Transport.Utilities.SimulatorUtility
#
Inherited MembersObject.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
#
Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
FuzzPacket(SimulatorUtility.Context*, ref SimulatorUtility.Parameters, ref InboundSendBuffer)#
Declaration#
ParametersType | Name | Description |
---|---|---|
SimulatorUtility.Context* | ctx | |
SimulatorUtility.Parameters | param | |
InboundSendBuffer | inboundBuffer |
#
GetDelayedPacket(ref NetworkPipelineContext, ref InboundSendBuffer, ref NetworkPipelineStage.Requests, Int64)#
Declaration#
ParametersType | Name | Description |
---|---|---|
NetworkPipelineContext | ctx | |
InboundSendBuffer | delayedPacket | |
NetworkPipelineStage.Requests | requests | |
System.Int64 | currentTimestamp |
#
ReturnsType | Description |
---|---|
System.Boolean |
#
GetEmptyDataSlot(NetworkPipelineContext, Byte*, ref Int32, ref Int32)#
Declaration#
ParametersType | Name | Description |
---|---|---|
NetworkPipelineContext | ctx | |
System.Byte* | processBufferPtr | |
System.Int32 | packetPayloadOffset | |
System.Int32 | packetDataOffset |
#
ReturnsType | Description |
---|---|
System.Boolean |
#
InitializeContext(SimulatorUtility.Parameters, Byte*)#
Declaration#
ParametersType | Name | Description |
---|---|---|
SimulatorUtility.Parameters | param | |
System.Byte* | sharedProcessBuffer |
#
ShouldDropPacket(SimulatorUtility.Context*, SimulatorUtility.Parameters, Int64)#
Declaration#
ParametersType | Name | Description |
---|---|---|
SimulatorUtility.Context* | ctx | |
SimulatorUtility.Parameters | param | |
System.Int64 | timestamp |
#
ReturnsType | Description |
---|---|
System.Boolean |
#
ShouldDuplicatePacket(SimulatorUtility.Context*, ref SimulatorUtility.Parameters)#
Declaration#
ParametersType | Name | Description |
---|---|---|
SimulatorUtility.Context* | ctx | |
SimulatorUtility.Parameters | param |
#
ReturnsType | Description |
---|---|
System.Boolean |
#
TryDelayPacket(ref NetworkPipelineContext, ref SimulatorUtility.Parameters, ref InboundSendBuffer, ref NetworkPipelineStage.Requests, Int64)Storing it twice will trigger a resend.
#
Declaration#
ParametersType | Name | Description |
---|---|---|
NetworkPipelineContext | ctx | |
SimulatorUtility.Parameters | param | |
InboundSendBuffer | inboundBuffer | |
NetworkPipelineStage.Requests | requests | |
System.Int64 | timestamp |
#
ReturnsType | Description |
---|---|
System.Boolean |
#
TrySkipDelayingPacket(ref SimulatorUtility.Parameters, ref NetworkPipelineStage.Requests, SimulatorUtility.Context*)Optimization. We want to skip TryDelayPacket(ref NetworkPipelineContext, ref SimulatorUtility.Parameters, ref InboundSendBuffer, ref NetworkPipelineStage.Requests, Int64) in the case where we have no delay to avoid mem-copies. Also ensures requests are updated if there are other packets in the store.
#
Declaration#
ParametersType | Name | Description |
---|---|---|
SimulatorUtility.Parameters | param | |
NetworkPipelineStage.Requests | requests | |
SimulatorUtility.Context* | simCtx |
#
ReturnsType | Description |
---|---|
System.Boolean | True if we can skip delaying this packet. |