All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zmq.io.coder.IDecoder Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
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