Property | Type | Description | |
---|---|---|---|
Merge | Cumulator |
Method | Description | |
---|---|---|
ChannelInactive ( IChannelHandlerContext context ) : void | ||
ChannelRead ( IChannelHandlerContext context, object message ) : void | ||
ChannelReadComplete ( IChannelHandlerContext context ) : void | ||
HandlerRemoved ( IChannelHandlerContext context ) : void | ||
SetCumulator ( Cumulator cumulator ) : void |
Set the Cumulator function used by this decoder.
|
|
SetDiscardAfterReads ( int discardAfterReads ) : void |
Set the number of reads after whcih IByteBuf.DiscardSomeReadBytes are called to free up memory. The default is
|
|
SetSingleDecode ( bool singleDecode ) : void |
When set to May be useful if oyu need to do a protocol upgrade and want to make sure nothing is mixed up. |
Method | Description | |
---|---|---|
CallDecode ( IChannelHandlerContext context, IByteBuf input, List | ||
Decode ( IChannelHandlerContext context, IByteBuf input, List | ||
DecodeLast ( IChannelHandlerContext context, IByteBuf input, List |
Called one last time when the IChannelHandlerContext goes inactive, which means the IChannelHandler.ChannelInactive was triggered. By default this will jsut call Decode but sub-classes may override this for special cleanup operations.
|
|
DiscardSomeReadBytes ( ) : void | ||
HandlerRemovedInternal ( IChannelHandlerContext context ) : void |
Method | Description | |
---|---|---|
ChannelInputClosed ( IChannelHandlerContext context, bool callChannelInactive ) : void | ||
ExpandCumulation ( IByteBufAllocator alloc, IByteBuf cumulation, int readable ) : IByteBuf |
Expand the existing cumulative IByteBuf.
|
|
FireChannelRead ( IChannelHandlerContext context, List |
protected CallDecode ( IChannelHandlerContext context, IByteBuf input, List | ||
context | IChannelHandlerContext | |
input | IByteBuf | |
output | List | |
return | void |
public ChannelInactive ( IChannelHandlerContext context ) : void | ||
context | IChannelHandlerContext | |
return | void |
public ChannelRead ( IChannelHandlerContext context, object message ) : void | ||
context | IChannelHandlerContext | |
message | object | |
return | void |
public ChannelReadComplete ( IChannelHandlerContext context ) : void | ||
context | IChannelHandlerContext | |
return | void |
protected abstract Decode ( IChannelHandlerContext context, IByteBuf input, List | ||
context | IChannelHandlerContext | |
input | IByteBuf | |
output | List | |
return | void |
protected DecodeLast ( IChannelHandlerContext context, IByteBuf input, List | ||
context | IChannelHandlerContext | |
input | IByteBuf | |
output | List | |
return | void |
public HandlerRemoved ( IChannelHandlerContext context ) : void | ||
context | IChannelHandlerContext | |
return | void |
protected HandlerRemovedInternal ( IChannelHandlerContext context ) : void | ||
context | IChannelHandlerContext | |
return | void |
public SetCumulator ( Cumulator cumulator ) : void | ||
cumulator | Cumulator | |
return | void |
public SetDiscardAfterReads ( int discardAfterReads ) : void | ||
discardAfterReads | int | |
return | void |
public SetSingleDecode ( bool singleDecode ) : void | ||
singleDecode | bool | The toggle for single decoding |
return | void |