Constructor and Description |
---|
DecoderBase(int bufsize) |
Modifier and Type | Method and Description |
---|---|
protected void |
decodingError() |
ByteBuffer |
getBuffer() |
MsgAllocator |
getMsgAllocator() |
protected abstract boolean |
next() |
protected void |
nextStep(byte[] buf,
int toRead,
int state) |
protected void |
nextStep(ByteBuffer buf,
int state) |
protected void |
nextStep(Msg msg,
int state) |
int |
processBuffer(ByteBuffer buf,
int size) |
void |
setMsgAllocator(MsgAllocator msgAllocator) |
boolean |
stalled() |
protected int |
state() |
protected void |
state(int state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMsgSink
public ByteBuffer getBuffer()
public int processBuffer(ByteBuffer buf, int size)
processBuffer
in interface IDecoder
protected void nextStep(Msg msg, int state)
protected void nextStep(byte[] buf, int toRead, int state)
protected void nextStep(ByteBuffer buf, int state)
protected int state()
protected void state(int state)
protected void decodingError()
public MsgAllocator getMsgAllocator()
public void setMsgAllocator(MsgAllocator msgAllocator)
protected abstract boolean next()
Copyright © 2022. All rights reserved.