Gemstone PhasorProtocols Library
Show/Hide TOC

# CreateNewCellFunction T Delegate

Defines function signature for creating new IChannelCell objects.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.143 -- Release Build+85729467224f210ef9c8bf0e7fa8d262d89bcbcd
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