Method GetChannel
| Edit this page View SourceGetChannel<T>(string)
Retrieve typed channel
Declaration
public GridBuffer<T> GetChannel<T>(string name) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the channel |
Returns
| Type | Description |
|---|---|
| GridBuffer<T> | Grid buffer with specified type |
Type Parameters
| Name | Description |
|---|---|
| T | Type specified |
Exceptions
| Type | Condition |
|---|---|
| KeyNotFoundException | If provided name does not exist yet |
GetChannel(string)
Retrieve untyped channel for inspection/serialization
Declaration
public IGridBuffer GetChannel(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the channel |
Returns
| Type | Description |
|---|---|
| IGridBuffer | Untyped grid buffer |
Exceptions
| Type | Condition |
|---|---|
| KeyNotFoundException | If provided name does not exist yet |