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

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

The newest version!
package zmq.io.coder;

import java.nio.ByteBuffer;

import zmq.Msg;
import zmq.util.ValueReference;

public interface IEncoder
{
    //  Load a new message into encoder.
    void loadMsg(Msg msg);

    //  The function returns a batch of binary data. The data
    //  are filled to a supplied buffer. If no buffer is supplied (data_
    //  points to NULL) decoder object will provide buffer of its own.
    int encode(ValueReference data, int size);

    void destroy();

    // called when stream engine finished encoding all messages and is ready to
    // send data to network layer
    void encoded();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy