Gemstone PhasorProtocols Library
Show/Hide TOC

# CreateNewCellFunctionT Delegate

Defines function signature for creating new IChannelCell objects.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.155 -- Release Build+e0712c061c586a83529028b96d7dab34b7d8eae9
C#
Request Example

    public delegate T CreateNewCellFunction<T>(
    	IChannelFrame parent,
    	IChannelFrameParsingState<T> state,
    	int index,
    	byte[] buffer,
    	int startIndex,
    	out int parsedLength
    )
    where T : IChannelCell

VB
Request Example

    Public Delegate Function CreateNewCellFunction(Of T As IChannelCell) (
    	parent As IChannelFrame,
    	state As IChannelFrameParsingState(Of T),
    	index As Integer,
    	buffer As Byte(),
    	startIndex As Integer,
    	<OutAttribute> ByRef parsedLength As Integer
    ) As T

C++
Request Example

    generic<typename T>
    where T : IChannelCell
    public delegate T CreateNewCellFunction(
    	IChannelFrame^ parent,
    	IChannelFrameParsingState<T>^ state,
    	int index,
    	array<unsigned char>^ buffer,
    	int startIndex,
    	[OutAttribute] int% parsedLength
    )

JavaScript
Request Example

    function(parent, state, index, buffer, startIndex, parsedLength);

#### Parameters

parent IChannelFrame
  Reference to parent IChannelFrame.
state IChannelFrameParsingState T
  Current parsing state of associated IChannelFrame.
index Int32
  Index of cell within its collection.
buffer Byte
  Binary image to parse IChannelCell from.
startIndex Int32
  Start index into buffer to begin parsing.
parsedLength Int32
  Returns the total number of bytes parsed from buffer.

#### Type Parameters

T
  Specific IChannelCell type of object that gets created by referenced function.

#### Return Value

T
New IChannelCell object.

## See Also

#### Reference

Gemstone.PhasorProtocols Namespace