Class NetworkBufferPool
Static class containing PooledNetworkBuffers
Inherited Members
Namespace: MLAPI.Serialization.Pooled
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public static class NetworkBufferPool
Methods
GetBuffer()
Retrieves an expandable PooledNetworkBuffer from the pool
Declaration
public static PooledNetworkBuffer GetBuffer()
Returns
| Type | Description |
|---|---|
| PooledNetworkBuffer | An expandable PooledNetworkBuffer |
PutBackInPool(PooledNetworkBuffer)
Puts a PooledNetworkBuffer back into the pool
Declaration
public static void PutBackInPool(PooledNetworkBuffer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| PooledNetworkBuffer | buffer | The buffer to put in the pool |