Mirror Networking
|
Pool of NetworkReaders to avoid allocations. More...
Static Public Member Functions | |
static NetworkReaderPooled | GetReader (byte[] bytes) |
static NetworkReaderPooled | Get (byte[] bytes) |
Get the next reader in the pool. If pool is empty, creates a new Reader More... | |
static NetworkReaderPooled | GetReader (ArraySegment< byte > segment) |
static NetworkReaderPooled | Get (ArraySegment< byte > segment) |
Get the next reader in the pool. If pool is empty, creates a new Reader More... | |
static void | Recycle (NetworkReaderPooled reader) |
static void | Return (NetworkReaderPooled reader) |
Returns a reader to the pool. More... | |
Pool of NetworkReaders to avoid allocations.
Definition at line 8 of file NetworkReaderPool.cs.
|
static |
Get the next reader in the pool. If pool is empty, creates a new Reader
Definition at line 40 of file NetworkReaderPool.cs.
|
static |
Get the next reader in the pool. If pool is empty, creates a new Reader
Definition at line 26 of file NetworkReaderPool.cs.
|
static |
Returns a reader to the pool.
Definition at line 54 of file NetworkReaderPool.cs.