Struct TransportFunctionPointer<T>
Convenience wrapper around a Burst function pointer. Should only be used when defining
functions for custom INetworkPipelineStage implementations.
Assembly: Unity.Networking.Transport.dll
Syntax
public struct TransportFunctionPointer<T> where T : Delegate
Type Parameters
Constructors
TransportFunctionPointer(FunctionPointer<T>)
Declaration
public TransportFunctionPointer(FunctionPointer<T> Pointer)
Parameters
Type |
Name |
Description |
FunctionPointer<T> |
Pointer |
|
TransportFunctionPointer(T)
Declaration
public TransportFunctionPointer(T executeDelegate)
Parameters
Type |
Name |
Description |
T |
executeDelegate |
|
Fields
Ptr
Declaration
public readonly FunctionPointer<T> Ptr
Field Value
Type |
Description |
FunctionPointer<T> |
|
Methods
Burst(T)
Declaration
public static TransportFunctionPointer<T> Burst(T burstCompilableDelegate)
Parameters
Type |
Name |
Description |
T |
burstCompilableDelegate |
|
Returns
Managed(T)
Declaration
public static TransportFunctionPointer<T> Managed(T managedDelegate)
Parameters
Type |
Name |
Description |
T |
managedDelegate |
|
Returns