zmq.io.coder.IEncoder 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 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