Method | Description | |
---|---|---|
LengthFieldBasedFrameDecoder ( ByteOrder byteOrder, int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip, bool failFast ) : System |
Create a new instance.
|
|
LengthFieldBasedFrameDecoder ( int maxFrameLength, int lengthFieldOffset, int lengthFieldLength ) : System |
Create a new instance.
|
|
LengthFieldBasedFrameDecoder ( int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip ) : System |
Create a new instance.
|
|
LengthFieldBasedFrameDecoder ( int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip, bool failFast ) : System |
Create a new instance.
|
Method | Description | |
---|---|---|
Decode ( IChannelHandlerContext context, IByteBuf input ) : object |
Create a frame out of the IByteBuf and return it.
|
|
Decode ( IChannelHandlerContext context, IByteBuf input, List | ||
ExtractFrame ( IChannelHandlerContext context, IByteBuf buffer, int index, int length ) : IByteBuf | ||
GetUnadjustedFrameLength ( IByteBuf buffer, int offset, int length, ByteOrder order ) : long |
Decodes the specified region of the buffer into an unadjusted frame length. The default implementation is capable of decoding the specified region into an unsigned 8/16/24/32/64 bit integer. Override this method to decode the length field encoded differently. Note that this method must not modify the state of the specified buffer (e.g. IByteBuf.ReaderIndex, IByteBuf.WriterIndex, and the content of the buffer.)
|
Method | Description | |
---|---|---|
Fail ( long frameLength ) : void | ||
FailIfNecessary ( bool firstDetectionOfTooLongFrame ) : void |
protected Decode ( IChannelHandlerContext context, IByteBuf input ) : object | ||
context | IChannelHandlerContext |
/// The |
input | IByteBuf | The |
return | object |
protected Decode ( IChannelHandlerContext context, IByteBuf input, List | ||
context | IChannelHandlerContext | |
input | IByteBuf | |
output | List | |
return | void |
protected ExtractFrame ( IChannelHandlerContext context, IByteBuf buffer, int index, int length ) : IByteBuf | ||
context | IChannelHandlerContext | |
buffer | IByteBuf | |
index | int | |
length | int | |
return | IByteBuf |
protected GetUnadjustedFrameLength ( IByteBuf buffer, int offset, int length, ByteOrder order ) : long | ||
buffer | IByteBuf | The buffer we'll be extracting the frame length from. |
offset | int | The offset from the absolute |
length | int | The length of the framelenght field. Expected: 1, 2, 3, 4, or 8. |
order | ByteOrder | The preferred |
return | long |
public LengthFieldBasedFrameDecoder ( ByteOrder byteOrder, int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip, bool failFast ) : System | ||
byteOrder | ByteOrder | The |
maxFrameLength | int |
/// The maximum length of the frame. If the length of the frame is
/// greater than this value then |
lengthFieldOffset | int | The offset of the length field. |
lengthFieldLength | int | The length of the length field. |
lengthAdjustment | int | The compensation value to add to the value of the length field. |
initialBytesToStrip | int | the number of first bytes to strip out from the decoded frame. |
failFast | bool |
/// If |
return | System |
public LengthFieldBasedFrameDecoder ( int maxFrameLength, int lengthFieldOffset, int lengthFieldLength ) : System | ||
maxFrameLength | int |
/// The maximum length of the frame. If the length of the frame is
/// greater than this value then |
lengthFieldOffset | int | The offset of the length field. |
lengthFieldLength | int | The length of the length field. |
return | System |
public LengthFieldBasedFrameDecoder ( int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip ) : System | ||
maxFrameLength | int |
/// The maximum length of the frame. If the length of the frame is
/// greater than this value then |
lengthFieldOffset | int | The offset of the length field. |
lengthFieldLength | int | The length of the length field. |
lengthAdjustment | int | The compensation value to add to the value of the length field. |
initialBytesToStrip | int | the number of first bytes to strip out from the decoded frame. |
return | System |
public LengthFieldBasedFrameDecoder ( int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip, bool failFast ) : System | ||
maxFrameLength | int |
/// The maximum length of the frame. If the length of the frame is
/// greater than this value then |
lengthFieldOffset | int | The offset of the length field. |
lengthFieldLength | int | The length of the length field. |
lengthAdjustment | int | The compensation value to add to the value of the length field. |
initialBytesToStrip | int | the number of first bytes to strip out from the decoded frame. |
failFast | bool |
/// If |
return | System |