zmq.io.coder.IDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeromq Show documentation
Show all versions of jeromq Show documentation
Pure Java implementation of libzmq
package zmq.io.coder;
import java.nio.ByteBuffer;
import zmq.Msg;
import zmq.util.ValueReference;
public interface IDecoder
{
public static interface Step
{
public static enum Result
{
MORE_DATA(0),
DECODED(1),
ERROR(-1);
@SuppressWarnings("unused")
// reminder for c++ equivalent
private final int code;
private Result(int code)
{
this.code = code;
}
}
Result apply();
}
ByteBuffer getBuffer();
Step.Result decode(ByteBuffer buffer, int size, ValueReference processed);
Msg msg();
void destroy();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy